docstr: Tests that the equality of mathematically identical Ops evaluates True
docstr_tok: ["Tests","that","the","equality","of","mathematically","identical","Ops","evaluates","True"]
code: def test_op_equality(self):
      """Tests that the equality of mathematically identical Ops evaluates True"""
  
      # Create ODE to test with
      def ode_func(y, t, p):
          return np.exp(-t) - p[0] * y[0]
  
      t = np.linspace(0, 2, 12)
  
      # Instantiate two Ops
      op_1 = DifferentialEquation(
          func=ode_func, t0=0, times=t, n_states=1, n_theta=1
      )
      op_2 = DifferentialEquation(
          func=ode_func, t0=0, times=t, n_states=1, n_theta=1
      )
      op_other = DifferentialEquation(
          func=ode_func,
          t0=0,
          times=np.linspace(0, 2, 16),
          n_states=1,
          n_theta=1,
      )
  
      assert op_1 == op_2
      assert op_1 != op_other
      return
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from scipy.stats import norm
  import pymc
  from pymc.ode import DifferentialEquation
  from pymc.testing import fast_unstable_sampling_mode
label_desc: Use image node_id 1 for calling the TestDiffEqModel obj's underlying member method code with example usage: obj.test_op_equality() and returns: unknown