code: def test_exception_if_sets_of_variables_differ(self):
      variable_graph = nx.MultiDiGraph()
      variable_graph.add_node("x")
      variable_graph.add_node("y")
      variable_graph.add_node("z")
  
      thing = Thing("V123", "person", "entity")
      concept_dict = {"x": thing, "y": thing, "a": thing}
  
      with self.assertRaises(ValueError) as context:
          _ = concept_dict_to_networkx(concept_dict, variable_graph)
  
      self.assertEqual(
          "The variables in the variable_graph must match those in the concept_dict\n"
          "In the variable graph but not in the concept dict: {'z'}\n"
          "In the concept dict but not in the variable graph: {'a'}",
          str(context.exception),
      )
  
file_path: typedb-ml/typedb_ml/networkx/concept_dict_to_networkx_test.py
imports: import unittest
  import networkx
  from typedb_ml.typedb.thing import Thing
  from typedb_ml.networkx.concept_dict_to_networkx import concept_dict_to_networkx
  from typedb_ml.networkx.graph_test_case import GraphTestCase
label_desc: Use image node_id 8 for calling the TestConceptDictToTypeDBGraph obj's underlying member method code with example usage: obj.test_exception_if_sets_of_variables_differ() without return types