<human>:  Write me a Python program to check if a file path is a file or directory.
<bot>: Here is a Python program to check if a file path is a file or directory

import os

def is_file(path):
  """Check if a file path is a file or directory."""
  if os.path.isfile(path):
    return True
  elif os.path.isdir(path):
    return True
  else:
    return False

# Enter the path
path = "/home/rosey/Desktop/test.txt"

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

#Example Output
# False

#Remember to inspect code for bugs.