human
how to check image format in tensorflow or keras.
assistant
Here is a Python program to check image format in tensorflow or keras

import numpy as np

def _check_image_format(image):
  """Checks if the image format is supported by tensorflow or keras."""
  if image.shape[2] == 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.