def METHOD_NAME(header):
    # cgi Deprecated since version 3.11, will be removed in version 3.13:
    # Used recommended alternative https://docs.python.org/3/library/cgi.html?highlight=parse_header#cgi.parse_header
    msg = EmailMessage()
    msg["content-type"] = header
    return msg["content-type"].params