<human>:  requests check if file exists.
<bot>: Here is a Python code to request check if a file exists

import os

def check_file(file_name):
  """
  Check if file exists.
  """
  if os.path.isfile(file_name):
    return True
  else:
    return False

# Enter the file name
file_name = "test.txt"

# Calling the function
print((check_file(file_name)))

#Example Output
# True

#Remember to inspect code for bugs.