code: def jax_funcify_Subtensor(op, node, **kwargs):
      idx_list = getattr(op, "idx_list", None)
      subtensor_assert_indices_jax_compatible(node, idx_list)
  
      def subtensor_constant(x, *ilists):
          indices = indices_from_subtensor(ilists, idx_list)
          if len(indices) == 1:
              indices = indices[0]
  
          return x.__getitem__(indices)
  
      return subtensor_constant
  
file_path: pytensor/pytensor/link/jax/dispatch/subtensor.py
imports: from pytensor.link.jax.dispatch.basic import jax_funcify
  from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1, AdvancedSubtensor, AdvancedSubtensor1, IncSubtensor, Subtensor, indices_from_subtensor
  from pytensor.tensor.type_other import MakeSlice
label_desc: Use image node_id 2 for calling a global function with example usage: jax_funcify_Subtensor(op, node) and returns: subtensor_constant, x