code: def test_Det(x, exc):
      g = nlinalg.Det()(x)
      g_fg = FunctionGraph(outputs=[g])
  
      cm = contextlib.suppress() if exc is None else pytest.warns(exc)
      with cm:
          compare_numba_and_py(
              g_fg,
              [
                  i.tag.test_value
                  for i in g_fg.inputs
                  if not isinstance(i, (SharedVariable, Constant))
              ],
          )
  
file_path: pytensor/tests/link/numba/test_nlinalg.py
imports: import contextlib
  import numpy
  import pytest
  import pytensor.tensor
  from pytensor.compile.sharedvalue import SharedVariable
  from pytensor.graph.basic import Constant
  from pytensor.graph.fg import FunctionGraph
  from pytensor.tensor import nlinalg, slinalg
  from tests.link.numba.test_basic import compare_numba_and_py, set_test_value
label_desc: Use image node_id 2 for calling a global function with example usage: test_Det(x, exc) without return types