def METHOD_NAME(url: str, payload: dict):
    """
    Requires VCIO API key in .env file
    For example::
              VCIO_TOKEN="OJ78Os2IPfM80hqVT2ek+1QnrTKvsX1HdOMABq3pmQd"
    """
    load_dotenv()
    vcio_token = os.environ.get("VCIO_TOKEN", None)
    if not vcio_token:
        msg = "Cannot call VulnerableCode API without a token set in the VCIO_TOKEN environment variable."
        raise VCIOTokenError(msg)
    response = (
        requests.post(url, headers={"Authorization": f"Token {vcio_token}"}, json=payload)
        if payload is not None
        else requests.get(url, headers={"Authorization": f"Token {vcio_token}"})
    )
    if response.text.startswith('{"detail":'):
        raise VCIOTokenError(f"{response.json().get('detail')}")
    return response