code: def mark_as_unsaveable():
      """Marks the function as unsaveable if not inside save context."""
      if ops.inside_function() and not save_context.in_save_context():
          ops.get_default_graph().mark_as_unsaveable(
              """
  ConcreteFunction that uses distributed variables in certain way cannot be saved.
  If you're saving with
  
  tf.saved_model.save(..., signatures=f.get_concrete_function())
  
  do
  
  @tf.function(input_signature=...)
  def f_with_input_signature():
    ...
  
  tf.saved_model.save(..., signatures=f_with_input_signature)`
  
  instead."""
          )
  
imports: from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import reduce_util
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.saved_model import save_context
  from tensorflow.python.saved_model import save_options
  from tensorflow.python.training.saving import saveable_object
label_desc: Use image node_id 28 for calling a global function with example usage: mark_as_unsaveable() without return types