def METHOD_NAME(url):
    # This could be much more elaborate
    # with an actual header check
    # and/or remote content-type check
    file_extension = url.split(".")[-1].lower()
    return file_extension