code: def register_specialize(lopt, *tags, **kwargs):
      theano.compile.optdb["specialize"].register(
          (kwargs and kwargs.pop("name")) or lopt.__name__,
          lopt,
          "fast_run",
          *tags,
      )
  
file_path: Theano/theano/sparse/sandbox/sp.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import scipy
  from scipy import sparse
  from six.moves import xrange
  import theano
  import theano.sparse
  from theano import sparse, gof, Op, tensor
  from theano.sparse.basic import Remove0, remove0
  from theano.sparse import SpSum, sp_sum, ColScaleCSC, RowScaleCSC, col_scale, row_scale, Diag, diag, SquareDiagonal, square_diagonal, EnsureSortedIndices, ensure_sorted_indices, clean
label_desc: Use image node_id 1 for calling a global function with example usage: register_specialize(lopt) without return types