code: def test_jax_Subtensor_boolean_mask():
      """JAX does not support resizing arrays with boolean masks."""
      x_pt = pt.vector("x", dtype="float64")
      out_pt = x_pt[x_pt < 0]
      assert isinstance(out_pt.owner.op, pt_subtensor.AdvancedSubtensor)
  
      out_fg = FunctionGraph([x_pt], [out_pt])
  
      x_pt_test = np.arange(-5, 5)
      with pytest.raises(
          NotImplementedError, match="resizing arrays with boolean"
      ):
          compare_jax_and_py(out_fg, [x_pt_test])
  
file_path: pytensor/tests/link/jax/test_subtensor.py
imports: import numpy
  import pytest
  import pytensor.tensor
  from pytensor.configdefaults import config
  from pytensor.graph.fg import FunctionGraph
  from pytensor.tensor import subtensor
  from pytensor.tensor.rewriting.jax import boolean_indexing_set_or_inc, boolean_indexing_sum
  from tests.link.jax.test_basic import compare_jax_and_py
label_desc: Use image node_id 3 for calling a global function with example usage: test_jax_Subtensor_boolean_mask() without return types