code: def test_issue_1710(self):
      dag = BayesianNetwork(
          [("X_1", "X_2"), ("Z", "X_1"), ("Z", "X_2")]
      )
      infer = CausalInference(dag)
      adj_set = infer.get_minimal_adjustment_set("X_1", "X_2")
  
      self.assertEqual(adj_set, {"Z"})
      self.assertRaises(
          ValueError, infer.get_minimal_adjustment_set, X="X_3", Y="Y"
      )
  
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 6 for calling the TestAdjustmentSet obj's underlying member method code with example usage: obj.test_issue_1710() without return types