code: def test_is_equivalent(self):
      ind1 = Independencies(["X", ["Y", "W"], "Z"])
      ind2 = Independencies(["X", "Y", "Z"], ["X", "W", "Z"])
      ind3 = Independencies(
          ["X", "Y", "Z"], ["X", "W", "Z"], ["X", "Y", ["W", "Z"]]
      )
      self.assertFalse(ind1.is_equivalent(ind2))
      self.assertTrue(ind1.is_equivalent(ind3))
  
imports: import unittest
  from pgmpy.independencies import Independencies, IndependenceAssertion
label_desc: Use image node_id 8 for calling the TestIndependencies obj's underlying member method code with example usage: obj.test_is_equivalent() without return types