def get_media_type(filepath):
    """Gets the media type for the given filepath.

    Args:
        filepath: a filepath

    Returns:
        the media type
    """
    if etai.is_image_mime_type(filepath):
        return IMAGE

    if etav.is_video_mime_type(filepath):
        return VIDEO

    if filepath.endswith(".pcd"):
        return POINT_CLOUD

    if filepath.endswith(".fo3d"):
        return THREE_D

    return UNKNOWN
Gets the media type for the given filepath.

    Args:
        filepath: a filepath

    Returns:
        the media type
    
fiftyone/core/media.py