code: def test_infer_shape(self):
      for sp_format in sparse.sparse_formats:
          for o_type in sparse.float_dtypes:
              self._compile_and_check(
                  self.inputs,
                  [Binomial(sp_format, o_type)(*self.inputs)],
                  self._inputs,
                  self.op_class,
              )
  
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 3 for calling the TestBinomial obj's underlying member method code with example usage: obj.test_infer_shape() without return types