parameters: (self, cls, args)
docstring: Insert 'cls(args)' into 'self.fisher_factors' if not already present.
  
      Wraps constructor in 'tf.variable_scope()' to ensure variables constructed
      in 'cls.__init__' are placed under this LayerCollection's scope.
  
      Args:
        cls: Class that implements FisherFactor.
        args: Tuple of arguments to pass into 'cls's constructor. Must be
          hashable.
  
      Returns:
        Instance of 'cls' found in self.fisher_factors.
docstring_summary: Insert 'cls(args)' into 'self.fisher_factors' if not already present.
docstring_tokens: Insert cls ( args ) into self . fisher_factors if not already present .
function: def make_or_get_factor(self, cls, args):
      """Insert 'cls(args)' into 'self.fisher_factors' if not already present.
  
      Wraps constructor in 'tf.variable_scope()' to ensure variables constructed
      in 'cls.__init__' are placed under this LayerCollection's scope.
  
      Args:
        cls: Class that implements FisherFactor.
        args: Tuple of arguments to pass into 'cls's constructor. Must be
          hashable.
  
      Returns:
        Instance of 'cls' found in self.fisher_factors.
      """
      try:
        hash(args)
      except TypeError:
        raise TypeError((
            "Unable to use (cls, args) = ({}, {}) as a key in "
            "LayerCollection.fisher_factors. The pair cannot be hashed."
        ).format(cls, args))
  
      with variable_scope.variable_scope(self._var_scope):
        return utils.setdefault(self.fisher_factors, (cls, args),
                                lambda: cls(*args))
function_tokens: def make_or_get_factor ( self , cls , args ) : try : hash ( args ) except TypeError : raise TypeError ( ( "Unable to use (cls, args) = ({}, {}) as a key in " "LayerCollection.fisher_factors. The pair cannot be hashed." ) . format ( cls , args ) ) with variable_scope . variable_scope ( self . _var_scope ) : return utils . setdefault ( self . fisher_factors , ( cls , args ) , lambda : cls ( * args ) )