code: def test_assignment_statename(self):
      req_op1 = [
          [("speed", "low"), ("switch", "on"), ("time", "night")],
          [("speed", "low"), ("switch", "off"), ("time", "day")],
      ]
      req_op2 = [
          [("speed", 0), ("switch", 0), ("time", 1)],
          [("speed", 0), ("switch", 1), ("time", 0)],
      ]
  
      self.assertEqual(self.phi1.assignment([1, 2]), req_op2)
      self.assertEqual(self.phi2.assignment([1, 2]), req_op1)
  
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 2 for calling the StateNameDecorator obj's underlying member method code with example usage: obj.test_assignment_statename() without return types