def METHOD_NAME(path: str) -> str:
    """Get the mimetype of a file
    Args:
        path: path to file to get the mime type of
    Returns:
        str: mime type of the file
    """
    return mimetypes.guess_type(path)[0]