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
code: def __setstate__(self, state):
      linker, optimizer = state
      self.provided_linker = linker
      self.provided_optimizer = optimizer
      if isinstance(linker, string_types) or linker is None:
          linker = predefined_linkers[linker]
      self.linker = linker
      if isinstance(optimizer, string_types) or optimizer is None:
          optimizer = predefined_optimizers[optimizer]
      if isinstance(optimizer, gof.Query):
          self.provided_optimizer = optimizer
      self._optimizer = optimizer
      self.call_time = 0
      self.fn_time = 0
  
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 3 for calling the Mode obj's underlying member method code with example usage: obj.__setstate__(state) without return types