<human>:  check if a variable is a file in.
<bot>: Here is a Python function to check if a variable is a file in Python

import os

def is_file(path):
  """
  Check if a variable is a file in

  :param path: input path
  :type path : str
  :return: bool
  """
  return os.path.isfile(path)

# Enter the path
path = "C:\\Users\\carnation\\Desktop\\python_exercises\\relative_path"

# Calling the function
print((is_file(path)))

#Example Output
# False

#Remember to inspect code for bugs.