comefrom: <qiyuangong>1365_How_Many_Numbers_Are_Smaller_Than_the_Current_Number_1.py
code: def smallerNumbersThanCurrent( nums: List[int]) -> List[int]:
      sorted_index = {}
      
      for pos, value in enumerate(sorted(nums)):
          if value in sorted_index:
              continue
          sorted_index[value] = pos
      res = []
      for value in nums:
          res.append(sorted_index[value])
      return res
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
      var_3 = { }
      for var_5 , var_7 in enumerate ( sorted ( var_0 ) ) :
          if var_7 in var_3 :
              continue
          var_3 [ var_7 ] = var_5
      var_8 = [ ]
      for var_7 in var_0 :
          var_8.append ( var_3 [ var_7 ] )
      return var_8
  