code: def test_op(self):
      for sp_format in sparse.sparse_formats:
          for o_type in sparse.float_dtypes:
              f = pytensor.function(
                  self.inputs, Binomial(sp_format, o_type)(*self.inputs)
              )
  
              tested = f(*self._inputs)
  
              assert tested.shape == tuple(self._shape)
              assert tested.format == sp_format
              assert tested.dtype == o_type
              assert np.allclose(
                  np.floor(tested.todense()), tested.todense()
              )
  
imports: import pytest
  import numpy
  import pytensor
  from pytensor import sparse
  from pytensor.configdefaults import config
  from pytensor.sparse.sandbox.sp2 import Binomial, Multinomial, Poisson, multinomial, poisson
  from pytensor.tensor.type import lscalar, lvector, scalar
  from tests import unittest_tools
  from tests.sparse.test_basic import as_sparse_format
label_desc: Use image node_id 2 for calling the TestBinomial obj's underlying member method code with example usage: obj.test_op() without return types