comefrom: <doocs>1452.People Whose List of Favorite Companies Is Not a Subset of Another List_1.py
code: def peopleIndexes( favoriteCompanies: List[List[str]]) -> List[int]:
      d = {}
      idx = 0
      t = []
      for v in favoriteCompanies:
          for c in v:
              if c not in d:
                  d[c] = idx
                  idx += 1
          t.append({d[c] for c in v})
      ans = []
      for i, nums1 in enumerate(t):
          ok = True
          for j, nums2 in enumerate(t):
              if i == j:
                  continue
              if not (nums1 - nums2):
                  ok = False
                  break
          if ok:
              ans.append(i)
      return ans
masked: def sample_funcname ( var_0 : List [ List [ str ] ] ) -> List [ int ] :
      var_4 = { }
      var_6 = 0
      var_7 = [ ]
      for var_8 in var_0 :
          for var_9 in var_8 :
              if var_9 not in var_4 :
                  var_4 [ var_9 ] = var_6
                  var_6 += 1
          var_7.append ( { var_4 [ var_9 ] for var_9 in var_8 } )
      var_12 = [ ]
      for var_14 , var_15 in enumerate ( var_7 ) :
          var_17 = True
          for var_18 , var_19 in enumerate ( var_7 ) :
              if var_14 == var_18 :
                  continue
              if not ( var_15 - var_19 ) :
                  var_17 = False
                  break
          if var_17 :
              var_12.append ( var_14 )
      return var_12
  