code: def test_cpd_init_statename(self):
      self.assertEqual(self.cpd1.state_names, self.sn2_no_names)
      self.assertEqual(self.cpd2.state_names, self.sn2)
  
file_path: pgmpy/pgmpy/tests/test_utils/test_state_name.py
imports: import unittest
  import numpy
  import numpy.testing
  from pgmpy.factors.discrete import DiscreteFactor, TabularCPD
  from pgmpy.models import BayesianNetwork
  from pgmpy.inference import Inference
  from pgmpy.inference import VariableElimination
label_desc: Use image node_id 3 for calling the TestStateNameInit obj's underlying member method code with example usage: obj.test_cpd_init_statename() without return types