comefrom: <doocs>1331.Rank Transform of an Array_1.py
code: def arrayRankTransform( arr: List[int]) -> List[int]:
      m = {v: i for i, v in enumerate(sorted(set(arr)), 1)}
      return [m[v] for v in arr]
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
      var_9 = { var_3 : var_4 for var_4 , var_3 in enumerate ( sorted ( set ( var_0 ) ) , 1 ) }
      return [ var_9 [ var_3 ] for var_3 in var_0 ]
  