code: def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
      dictionary = {}
  
      for word in strs:
          sortedWord = "".join(sorted(word))
  
          if sortedWord in dictionary:
              dictionary[sortedWord].append(word)
          else:
              dictionary[sortedWord] = [word]
  
      return dictionary.values()
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.groupAnagrams(strs) and returns: dictionary