human
determine if a file is image.
assistant
Here is a Python program to determine if a file is an image

import os

def is_image(file):
    """Determine if a file is image."""
    return (file.endswith(".png") or file.endswith(".jpg") or file.endswith(".jpeg"))

# Enter the file name
file_name = "/home/rosey/Desktop/test.jpg"

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

#Example Output
# True

#Remember to inspect code for bugs.