<human>:  how to check image format in tensorflow or keras.
<bot>: == 3:
  return True
 else:
  return False

# Enter the image
image = np.random.randint(0, 255, size=(10, 10, 3))

# Calling the function
print((_check_image_format(image)))

#Example Output
# True

#Remember to inspect code for bugs.