code: def test_sparse_objmode():
      x = SparseTensorType("csc", dtype=config.floatX)()
      y = SparseTensorType("csc", dtype=config.floatX)()
  
      out = Dot()(x, y)
  
      x_val = sp.sparse.random(2, 2, density=0.25, dtype=config.floatX)
      y_val = sp.sparse.random(2, 2, density=0.25, dtype=config.floatX)
  
      with pytest.warns(
          UserWarning,
          match="Numba will use object mode to run SparseDot's perform method",
      ):
          compare_numba_and_py(((x, y), (out,)), [x_val, y_val])
  
file_path: pytensor/tests/link/numba/test_sparse.py
imports: import numpy
  import pytest
  import scipy
  import pytensor.link.numba.dispatch.sparse
  from pytensor import config
  from pytensor.sparse import Dot, SparseTensorType
  from tests.link.numba.test_basic import compare_numba_and_py
label_desc: Use image node_id 6 for calling a global function with example usage: test_sparse_objmode() without return types