code: def concept_dict_from_concept_map(concept_map):
      """
      Given a concept map, build a dictionary of the variables present and the concepts they refer to, locally storing any
      information required about those concepts.
  
      Args:
          concept_map: A dict of Concepts provided by TypeDB keyed by query variables
  
      Returns:
          A dictionary of concepts keyed by query variables
      """
      return {
          variable: build_thing(typedb_concept)
          for variable, typedb_concept in concept_map.map().items()
      }
  
file_path: typedb-ml/typedb_ml/networkx/queries_to_networkx.py
imports: import warnings
  from functools import reduce
  import networkx
  from typedb_ml.typedb.thing import build_thing
  from typedb_ml.networkx.concept_dict_to_networkx import concept_dict_to_networkx
label_desc: Use image node_id 2 for calling a global function with example usage: concept_dict_from_concept_map(concept_map) and returns: unknown