def METHOD_NAME(
    sam_api_url: str, params: dict, headers: dict
) -> tuple[Optional[requests.Response], Optional[str]]:
    """
    Call the SAM.gov API and return the response and/or error string
    SAM.gov uses a legacy version of SSL that OpenSSL 3 rejects. We specify
    just in this one spot the magic flag 0x04 corresponding to
    ssl.OP_LEGACY_SERVER_CONNECT for the SSL context.
    """
    try:
        return (
            SESSION.get(sam_api_url, params=params, headers=headers, timeout=15),
            None,
        )
    except requests.exceptions.Timeout:
        error = "SAM.gov API timeout"
    except requests.exceptions.TooManyRedirects:
        error = "SAM.gov API error - too many redirects"
    except requests.exceptions.RequestException as e:
        error = f"Unable to make SAM.gov API request, error: {str(e)}"
    return None, error