in src/mapillary/utils/verify.py [0:0]
def resolution_check(resolution: int) -> bool:
"""
Checking for the proper thumbnail size of the argument
:param resolution: The image size to fetch for
:type resolution: int
:raises InvalidOptionError: Invalid thumbnail size passed raises exception
:return: A check if the size is correct
:rtype: bool
"""
if resolution not in [256, 1024, 2048]:
# Raising exception for resolution value
raise InvalidOptionError(
param="resolution", value=str(resolution), options=[256, 1024, 2048]
)
return True