code: def test_add_vars_adds_variable_nodes_as_expected(self):
      g = QueryGraph()
      g.add_vars(["a", "b"])
      nodes = {node for node in g.nodes}
      self.assertSetEqual({"a", "b"}, nodes)
  
file_path: typedb-ml/typedb_ml/networkx/query_graph_test.py
imports: import unittest
  from typedb_ml.networkx.query_graph import QueryGraph
label_desc: Use image node_id 2 for calling the TestQueryGraph obj's underlying member method code with example usage: obj.test_add_vars_adds_variable_nodes_as_expected() without return types