code: def jax_funcify_AdvancedIncSubtensor(op, node, **kwargs):
      if getattr(op, "set_instead_of_inc", False):
  
          def jax_fn(x, indices, y):
              return x.at[indices].set(y)
  
      else:
  
          def jax_fn(x, indices, y):
              return x.at[indices].add(y)
  
      def advancedincsubtensor(x, y, *ilist, jax_fn=jax_fn):
          return jax_fn(x, ilist, y)
  
      return advancedincsubtensor
  
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 4 for calling a global function with example usage: jax_funcify_AdvancedIncSubtensor(op, node) and returns: advancedincsubtensor, jax_fn, x, x