code: def test_create_estimator(self):
      game1 = BayesianNetwork([("X", "A"), ("A", "Y"), ("A", "B")])
      data = pd.DataFrame(
          np.random.randint(2, size=(1000, 4)),
          columns=["X", "A", "B", "Y"],
      )
      inference = CausalInference(model=game1)
      ate = inference.estimate_ate(
          "X", "Y", data=data, estimator_type="linear"
      )
      self.assertAlmostEqual(ate, 0, places=1)
  
imports: import unittest
  import numpy
  import numpy.testing
  import pandas
  from pgmpy.factors.discrete import TabularCPD
  from pgmpy.inference.CausalInference import CausalInference
  from pgmpy.models import BayesianNetwork
label_desc: Use image node_id 1 for calling the TestEstimator obj's underlying member method code with example usage: obj.test_create_estimator() without return types