parameters: (self, data)
return_statement: return outdict
docstring: Helper function for merge.
  
          Takes a dictionary whose values are lists and returns a dict with
          the elements of each list as keys and the original keys as values.
docstring_summary: Helper function for merge.
docstring_tokens: Helper function for merge .
function: def __dict_invert(self, data):
          """Helper function for merge.
  
          Takes a dictionary whose values are lists and returns a dict with
          the elements of each list as keys and the original keys as values.
          """
          outdict = {}
          for k,lst in data.items():
              if isinstance(lst, str):
                  lst = lst.split()
              for entry in lst:
                  outdict[entry] = k
          return outdict
function_tokens: def __dict_invert ( self , data ) : outdict = { } for k , lst in data . items ( ) : if isinstance ( lst , str ) : lst = lst . split ( ) for entry in lst : outdict [ entry ] = k return outdict