code: def local_eager_useless_unbatched_blockwise(fgraph, node):
      if isinstance(
          node.op.core_op,
          (
              # Many Dot-related rewrites (e.g., all of BlasOpt) happen before specialize
              Dot,
              # These Ops can't always be trivially vectorized at runtime,
              # Since their inputs may imply non-rectangular shapes.
              Alloc,
              ARange,
              Subtensor,
              AdvancedSubtensor,
              AdvancedIncSubtensor,
          ),
      ):
          return local_useless_unbatched_blockwise.fn(fgraph, node)
  
file_path: pytensor/pytensor/tensor/rewriting/blockwise.py
imports: from typing import Optional
  from pytensor.compile.mode import optdb
  from pytensor.graph import Constant, node_rewriter
  from pytensor.graph.replace import vectorize_node
  from pytensor.graph.rewriting.basic import copy_stack_trace, out2in
  from pytensor.tensor.basic import Alloc, ARange, alloc, shape_padleft
  from pytensor.tensor.blockwise import Blockwise
  from pytensor.tensor.math import Dot
  from pytensor.tensor.rewriting.basic import register_canonicalize, register_specialize, register_stabilize
  from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedSubtensor, Subtensor
label_desc: Use image node_id 3 for calling a global function with example usage: local_eager_useless_unbatched_blockwise(fgraph, node) and returns: local_useless_unbatched_blockwise