code: def register_specialize(lopt, *tags, **kwargs):
      pytensor.compile.optdb["specialize"].register(
          (kwargs and kwargs.pop("name")) or lopt.__name__,
          lopt,
          "fast_run",
          *tags,
      )
  
file_path: pytensor/pytensor/sparse/sandbox/sp.py
imports: import numpy
  from scipy import sparse
  import pytensor
  import pytensor.sparse
  from pytensor import sparse
  from pytensor import tensor
  from pytensor.graph.op import Op
  from pytensor.tensor.math import dot
  from pytensor.tensor.math import max
  from pytensor.tensor.shape import reshape
  from pytensor.tensor.subtensor import DimShuffle
label_desc: Use image node_id 1 for calling a global function with example usage: register_specialize(lopt) without return types