code: def test_jax_checkandraise():
      p = scalar()
      p.tag.test_value = 0
  
      res = assert_op(p, p < 1.0)
  
      with pytest.warns(UserWarning):
          function((p,), res, mode=jax_mode)
  
imports: from collections.abc import Iterable
  from functools import partial
  from typing import Callable, Optional
  import numpy
  import pytest
  from pytensor.compile.function import function
  from pytensor.compile.mode import get_mode
  from pytensor.compile.sharedvalue import SharedVariable, shared
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Apply
  from pytensor.graph.fg import FunctionGraph
  from pytensor.graph.op import Op, get_test_value
  from pytensor.ifelse import ifelse
  from pytensor.raise_op import assert_op
  from pytensor.tensor.type import dscalar, scalar, vector
label_desc: Use image node_id 7 for calling a global function with example usage: test_jax_checkandraise() without return types