code: def get_node_to_component_dict(self):
      return self.id_node_df.set_index("name")["Component"].to_dict()
  
file_path: scattertext/scattertext/graphs/ComponentDiGraph.py
imports: import numpy
  import pandas
label_desc: Use image node_id 4 for calling the ComponentDiGraph obj's underlying member method code with example usage: obj.get_node_to_component_dict() and returns: self