docs: def truncate_cwd(full_filename):
      """Remove the cwd from the full filename."""
      if full_filename.startswith(os.getcwd()):
          truncated_filename = full_filename.split(os.getcwd(), 1)[1]
          truncated_filename = truncated_filename.split(os.sep, 1)[1]
      else:
          truncated_filename = full_filename
      return truncated_filename