class_docstr: Test the transform function (validate and dispatch).
docstr: Tests that we can compare TransformContainer objects with the '==' and '!=' operators.
code: def test_equality(self):
      """Tests that we can compare TransformContainer objects with the '==' and '!=' operators."""
  
      t1 = TransformContainer(
          qml.transforms.compile.transform,
          kwargs={"num_passes": 2, "expand_depth": 1},
      )
      t2 = TransformContainer(
          qml.transforms.compile.transform,
          kwargs={"num_passes": 2, "expand_depth": 1},
      )
      t3 = TransformContainer(
          qml.transforms.transpile.transform,
          kwargs={"coupling_map": [(0, 1), (1, 2)]},
      )
      t4 = TransformContainer(
          qml.transforms.compile.transform,
          kwargs={"num_passes": 2, "expand_depth": 2},
      )
  
      t5 = TransformContainer(
          qml.transforms.merge_rotations.transform, args=(1e-6,)
      )
      t6 = TransformContainer(
          qml.transforms.merge_rotations.transform, args=(1e-7,)
      )
  
      # test for equality of identical transformers
      assert t1 == t2
  
      # test for inequality of different transformers
      assert t1 != t3
      assert t2 != t3
      assert t1 != 2
      assert t1 != t4
      assert t5 != t6
      assert t5 != t1
  
      # Test equality with the same args
      t5_copy = TransformContainer(
          qml.transforms.merge_rotations.transform, args=(1e-6,)
      )
      assert t5 == t5_copy
  
imports: from typing import Sequence, Callable
  from functools import partial
  import pytest
  import pennylane
  from pennylane.transforms.core import transform, TransformError, TransformContainer
label_desc: Use image node_id 5 for calling the TestTransformDispatcher obj's underlying member method code with example usage: obj.test_equality() without return types