Human: invalid dimensions for image data in. Assistant: 
Here is a Python code to invalid dimensions for image data

import math

def is_valid_image_size(image_size):
    """Returns True if image_size is a valid image size."""
    if len(image_size)!= 2:
        return False
    if image_size[0] <= 0 or image_size[1] <= 0:
        return False
    return True

# Enter the image size
image_size = [10, 10]

# Calling the function
print((is_valid_image_size(image_size)))

#Example Output
# True

#Remember to inspect code for bugs.