code: def ask_to_proceed_with_overwrite(filepath):
      """Produces a prompt asking about overwriting a file.
  
      Args:
          filepath: the path to the file to be overwritten.
  
      Returns:
          True if we can proceed with overwrite, False otherwise.
      """
      overwrite = (
          input(
              f"[WARNING] {filepath} already exists - overwrite? [y/n]"
          )
          .strip()
          .lower()
      )
      while overwrite not in ("y", "n"):
          overwrite = (
              input('Enter "y" (overwrite) or "n" (cancel).')
              .strip()
              .lower()
          )
      if overwrite == "n":
          return False
      print_msg("[TIP] Next time specify overwrite=True!")
      return True
  
file_path: keras/keras/utils/io_utils.py
imports: import sys
  from absl import logging
  from keras.api_export import keras_export
  from keras.backend.common import global_state
label_desc: Use image node_id 6 for calling a global function with example usage: ask_to_proceed_with_overwrite(filepath) and returns: True, False