class_docstr: A dict subclass with attribute style access.
  
  This dict subclass has a a few extra features:
  
  * Attribute style access.
  * Protection of class members (like keys, items) when using attribute
    style access.
  * The ability to restrict assignment to only existing keys.
  * Intelligent merging.
  * Overloaded operators.
class_docstr_tok: ["A","dict","subclass","with","attribute","style","access",".","This","dict","subclass","has","a","a","few","extra","features",":","*","Attribute","style","access",".","*","Protection","of","class","members","(","like","keys",",","items",")","when","using","attribute","style","access",".","*","The","ability","to","restrict","assignment","to","only","existing","keys",".","*","Intelligent","merging",".","*","Overloaded","operators","."]
docstr: 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.
docstr_tok: ["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","."]
code: 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
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/ipstruct.py
label_desc: Use image node_id 9 for calling the Struct obj's underlying member method code with example usage: obj.__dict_invert(data) and returns: outdict