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(
              "[WARNING] %s already exists - overwrite? "
              "[y/n]" % (filepath)
          )
          .strip()
          .lower()
      )
      while overwrite not in ("y", "n"):
          overwrite = (
              input('Enter "y" (overwrite) or "n" ' "(cancel).")
              .strip()
              .lower()
          )
      if overwrite == "n":
          return False
      print("[TIP] Next time specify overwrite=True!")
      return True
  
label_desc: Use image node_id 2 for calling a global function with example usage: ask_to_proceed_with_overwrite(filepath) and returns: True, False