def METHOD_NAME(media_types: list[str]) -> list[str]:
    """Parse valid media types out from user input. Defaults to ["image",]."""
    valid_media_types = []
    if media_types is None:
        media_types = []
    for media_type in media_types:
        if media_type in MEDIA_TYPES:
            valid_media_types.append(media_type)
        else:
            print(f"Ignoring invalid type {media_type}")
    # Default to image if no valid types given
    if not valid_media_types:
        print('No media type given, defaulting to ["image",]')
        return [
            "image",
        ]
    return valid_media_types