def METHOD_NAME(self, headers):
    option = headers.get("X-Content-Type-Options")
    if option == "nosniff":
        return
    _maybe_raise_value_error(
        'X-Content-Type-Options is required to be "nosniff"'
    )