nodes: 0, module; 1, function_definition; 2, function_name:get_sh_ids; 3, parameters; 4, block; 5, identifier:self; 6, identifier:identity; 7, identifier:backend_name; 8, expression_statement; 9, comment:# Convert the dict to tuple so it is hashable; 10, expression_statement; 11, expression_statement; 12, return_statement; 13, comment:""" Return the Sorting Hat id and uuid for an identity """; 14, assignment; 15, assignment; 16, identifier:sh_ids; 17, identifier:identity_tuple; 18, call; 19, identifier:sh_ids; 20, call; 21, identifier:tuple; 22, argument_list; 23, attribute; 24, argument_list; 25, call; 26, identifier:self; 27, identifier:__get_sh_ids_cache; 28, identifier:identity_tuple; 29, identifier:backend_name; 30, attribute; 31, argument_list; 32, identifier:identity; 33, identifier:items
code: def get_sh_ids(self, identity, backend_name):
          """ Return the Sorting Hat id and uuid for an identity """
          # Convert the dict to tuple so it is hashable
          identity_tuple = tuple(identity.items())
          sh_ids = self.__get_sh_ids_cache(identity_tuple, backend_name)
          return sh_ids