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 query(self, *tags, **kwtags):
      # For the new `useless` optimizer
      opts = list(super(LocalGroupDB, self).query(*tags, **kwtags))
      opts.sort(key=lambda obj: (self.__position__[obj.name], obj.name))
  
      ret = self.local_opt(
          *opts,
          apply_all_opts=self.apply_all_opts,
          profile=self.profile,
      )
      return ret
  
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 3 for calling the LocalGroupDB obj's underlying member method code with example usage: obj.query() and returns: ret