class_docstr: The Mode represents a way to optimize and then link a computation graph.
  
  Parameters
  ----------
  optimizer : a structure of type Optimizer
      An Optimizer may simplify the math, put similar computations together,
      improve numerical stability and various other improvements.
  linker : a structure of type Linker
      A Linker decides which implementations to use (C or Python, for example)
      and how to string them together to perform the computation.
  
  See Also
  --------
  predefined_linkers
  predefined_optimizers
  predefined_modes
docstr: Adds new optimization instances to a mode.
  
  This method adds new optimization instances to a compilation mode. It
  works like the `including()` method but takes as inputs optimization
  instances to add instead of tags.
  
  Parameters
  ----------
  optimizations :
      Every element of `optimizations` is a tuple containing an
      optimization instance and a floating point value indicating the
      position at which to insert the optimization in the mode.
  
  Returns
  -------
  Mode
      Copy of the current Mode which includes the provided
      optimizations.
code: def register(self, *optimizations):
      """Adds new optimization instances to a mode.
  
      This method adds new optimization instances to a compilation mode. It
      works like the `including()` method but takes as inputs optimization
      instances to add instead of tags.
  
      Parameters
      ----------
      optimizations :
          Every element of `optimizations` is a tuple containing an
          optimization instance and a floating point value indicating the
          position at which to insert the optimization in the mode.
  
      Returns
      -------
      Mode
          Copy of the current Mode which includes the provided
          optimizations.
      """
  
      link, opt = self.get_linker_optimizer(
          self.provided_linker, self.provided_optimizer
      )
      return self.clone(optimizer=opt.register(*optimizations))
  
imports: from __future__ import absolute_import, print_function, division
  import logging
  import warnings
  import theano
  from theano import gof
  import theano.gof.vm
  from theano import config
  from six import string_types
  from theano.compile.function_module import Supervisor
label_desc: Use image node_id 8 for calling the Mode obj's underlying member method code with example usage: obj.register() and returns: self