code: def test_op(self):
      for format in sparse.sparse_formats:
          f = pytensor.function(
              [self.x[format]], poisson(self.x[format])
          )
  
          tested = f(self.a[format])
  
          assert tested.format == format
          assert tested.dtype == self.a[format].dtype
          assert np.allclose(np.floor(tested.data), tested.data)
          assert tested.shape == self.a[format].shape
  
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 TestPoisson obj's underlying member method code with example usage: obj.test_op() without return types