parameters: (self, vars_to_save, seen_variables, variable, slice_spec,
                      name)
docstring: Create a VarToSave and add it  to the vars_to_save list.
  
      Args:
        vars_to_save: List to append the new VarToSave to.
        seen_variables: Set of variables already processed.  Used to check
          that each variable is only saved once.
        variable: Variable to save.
        slice_spec: String.  Slice spec for the variable.
        name: Name to use to save the variable.
  
      Raises:
        ValueError: If the variable has already been processed.
docstring_summary: Create a VarToSave and add it  to the vars_to_save list.
docstring_tokens: Create a VarToSave and add it to the vars_to_save list .
function: def _AddVarToSave(self, vars_to_save, seen_variables, variable, slice_spec,
                      name):
      """Create a VarToSave and add it  to the vars_to_save list.
  
      Args:
        vars_to_save: List to append the new VarToSave to.
        seen_variables: Set of variables already processed.  Used to check
          that each variable is only saved once.
        variable: Variable to save.
        slice_spec: String.  Slice spec for the variable.
        name: Name to use to save the variable.
  
      Raises:
        ValueError: If the variable has already been processed.
      """
      if variable in seen_variables:
        raise ValueError("The same variable will be restored with two names: %s",
                         variable)
      vars_to_save.append(BaseSaverBuilder.VarToSave(variable, slice_spec, name))
      seen_variables.add(variable)
function_tokens: def _AddVarToSave ( self , vars_to_save , seen_variables , variable , slice_spec , name ) : if variable in seen_variables : raise ValueError ( "The same variable will be restored with two names: %s" , variable ) vars_to_save . append ( BaseSaverBuilder . VarToSave ( variable , slice_spec , name ) ) seen_variables . add ( variable )