comefrom: <qiyuangong>697_Degree_of_an_Array_1.py
code: def smallestSubArray( nums, key, degree):
      start = nums.index(key)
      pos = start + 1
      degree -= 1
      while pos < len(nums) and degree != 0:
          if nums[pos] == key:
              degree -= 1
          pos += 1
      return pos - start
masked: def sample_funcname ( var_0 , var_1 , var_2 ) :
      var_4 = var_0.index ( var_1 )
      var_6 = var_4 + 1
      var_2 -= 1
      while var_6 < len ( var_0 ) and var_2 != 0 :
          if var_0 [ var_6 ] == var_1 :
              var_2 -= 1
          var_6 += 1
      return var_6 - var_4
  