code: def should_overwrite(filepath, overwrite):
      """Returns whether the filepath should be overwritten."""
      # If file exists and should not be overwritten.
      if not overwrite and os.path.isfile(filepath):
          return ask_to_proceed_with_overwrite(filepath)
      return True
  
imports: import collections
  import copy
  import os
  from tensorflow.python.eager import def_function
  from tensorflow.python.keras import backend
  from tensorflow.python.keras import losses
  from tensorflow.python.keras import optimizer_v1
  from tensorflow.python.keras import optimizers
  from tensorflow.python.keras.engine import base_layer_utils
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.keras.utils import version_utils
  from tensorflow.python.keras.utils.io_utils import ask_to_proceed_with_overwrite
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import nest
label_desc: Use image node_id 6 for calling a global function with example usage: should_overwrite(filepath, overwrite) and returns: True, ask_to_proceed_with_overwrite