class_docstr: Generate a local optimizer of type LocalOptGroup instead
  of a global optimizer.
  
  It supports the tracks, to only get applied to some Op.
class_docstr_tok: ["Generate","a","local","optimizer","of","type","LocalOptGroup","instead","of","a","global","optimizer",".","It","supports","the","tracks",",","to","only","get","applied","to","some","Op","."]
code: def register(self, name, obj, *tags, **kwargs):
      super(LocalGroupDB, self).register(name, obj, *tags)
      position = kwargs.pop("position", "last")
      if position == "last":
          if len(self.__position__) == 0:
              self.__position__[name] = 0
          else:
              self.__position__[name] = (
                  max(self.__position__.values()) + 1
              )
      else:
          assert isinstance(position, (integer_types, float))
          self.__position__[name] = position
  
imports: from __future__ import absolute_import, print_function, division
  import copy
  import sys
  from theano.compat import DefaultOrderedDict
  from theano.misc.ordered_set import OrderedSet
  from six import StringIO, integer_types
  from theano.gof import opt
  from theano import config
label_desc: Use image node_id 2 for calling the LocalGroupDB obj's underlying member method code with example usage: obj.register(name, obj) without return types