code: def get_variables_to_restore(include=None, exclude=None):
      """Gets the list of the variables to restore.
  
      Args:
        include: an optional list/tuple of scope strings for filtering which
          variables from the VARIABLES collection to include. None would include all
          the variables.
        exclude: an optional list/tuple of scope strings for filtering which
          variables from the VARIABLES collection to exclude. None it would not
          exclude any.
  
      Returns:
        a list of variables to restore.
  
      Raises:
        TypeError: include or exclude is provided but is not a list or a tuple.
      """
      if include is None:
          # Include all variables.
          vars_to_include = get_variables()
      else:
          if not isinstance(include, (list, tuple)):
              raise TypeError(
                  "include is provided but is not a list or a tuple."
              )
          vars_to_include = []
          for scope in include:
              vars_to_include += get_variables(scope)
      vars_to_exclude = set()
      if exclude is not None:
          if not isinstance(exclude, (list, tuple)):
              raise TypeError(
                  "exclude is provided but is not a list or a tuple."
              )
          for scope in exclude:
              vars_to_exclude |= set(get_variables(scope))
      # Exclude the variables in vars_to_exclude
      return [v for v in vars_to_include if v not in vars_to_exclude]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import re
  from .arg_scope import add_arg_scope
  from tensorflow.core.protobuf import saver_pb2
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.framework import device
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import saver
  from tensorflow.python.training import training_util
  from tensorflow.python.util.deprecation import deprecated
label_desc: Use image node_id 15 for calling a global function with example usage: get_variables_to_restore(include, exclude) and returns: unknown