code: def test_build_graph(self):
      data = dowhy.datasets.linear_dataset(
          beta=10,
          num_common_causes=1,
          num_instruments=1,
          num_samples=100,
      )
      res1 = CausalModel(
          data=data["df"],
          treatment=data["treatment_name"],
          outcome=data["outcome_name"],
          common_causes=["W0"],
          instruments=["Z0"],
          missing_nodes_as_confounders=False,
      )._graph._graph
      res2 = build_graph(
          action_nodes=data["treatment_name"],
          outcome_nodes=data["outcome_name"],
          common_cause_nodes=["W0"],
          instrument_nodes=["Z0"],
      )
      assert res1.edges == res2.edges
  
imports: import networkx
  import pandas
  import pytest
  from flaky import flaky
  from pytest import mark
  import dowhy
  import dowhy.datasets
  from dowhy import CausalModel
  from dowhy.graph import *
  from dowhy.utils.graph_operations import daggity_to_dot
label_desc: Use image node_id 10 for calling the TestCausalGraph obj's underlying member method code with example usage: obj.test_build_graph() without return types