code: def test_graph_is_built_from_typedb_as_expected(self):
      g1 = nx.MultiDiGraph()
      g1.add_node("x")
  
      g2 = nx.MultiDiGraph()
      g2.add_node("x")
      g2.add_node("n")
      g2.add_edge("x", "n", type="has")
  
      g3 = nx.MultiDiGraph()
      g3.add_node("x")
      g3.add_node("r")
      g3.add_node("y")
      g3.add_edge("r", "x", type="child")
      g3.add_edge("r", "y", type="parent")
  
      queries = [
          Query(g1, "match $x isa person;"),
          Query(g2, "match $x isa person, has name $n;"),
          Query(g3, "match $x isa person; $r(child: $x, parent: $y);"),
      ]
  
      with self._client.session(
          self._database, SessionType.SCHEMA
      ) as session:
          with session.transaction(TransactionType.WRITE) as tx:
              tx.query().define(
                  ITBuildGraphFromQueriesWithRealTypeDB.SCHEMA
              )
              tx.commit()
  
      with self._client.session(
          self._database, SessionType.DATA
      ) as session:
          with session.transaction(TransactionType.WRITE) as tx:
              tx.query().insert(
                  ITBuildGraphFromQueriesWithRealTypeDB.DATA
              )
              tx.commit()
          with session.transaction(TransactionType.READ) as tx:
              combined_graph = build_graph_from_queries(queries, tx)
  
              person_exp = build_thing(
                  next(tx.query().match("match $x isa person;")).get(
                      "x"
                  )
              )
              name_exp = build_thing(
                  next(tx.query().match("match $x isa name;")).get("x")
              )
              parentship_exp = build_thing(
                  next(
                      tx.query().match("match $x isa parentship;")
                  ).get("x")
              )
  
      expected_combined_graph = nx.MultiDiGraph()
      expected_combined_graph.add_node(person_exp, type="person")
      expected_combined_graph.add_node(
          name_exp,
          type="name",
          value_type=AttributeType.ValueType.STRING,
          value="Bob",
      )
      expected_combined_graph.add_node(
          parentship_exp, type="parentship"
      )
      expected_combined_graph.add_edge(
          parentship_exp, person_exp, type="child"
      )
      expected_combined_graph.add_edge(
          parentship_exp, person_exp, type="parent"
      )
      expected_combined_graph.add_edge(person_exp, name_exp, type="has")
  
      self.assertGraphsEqual(expected_combined_graph, combined_graph)
  
file_path: typedb-ml/typedb_ml/networkx/queries_to_networkx_it.py
imports: import sys
  import unittest
  import networkx
  from typedb.client import *
  from typedb_ml.networkx.graph_test_case import GraphTestCase
  from typedb_ml.networkx.queries_to_networkx import build_graph_from_queries
  from typedb_ml.networkx.query_graph import Query
  from typedb_ml.typedb.test.base import TypeDBServer
  from typedb_ml.typedb.thing import build_thing
label_desc: Use image node_id 3 for calling the ITBuildGraphFromQueriesWithRealTypeDB obj's underlying member method code with example usage: obj.test_graph_is_built_from_typedb_as_expected() without return types