def METHOD_NAME(payload):
    response = requests.post(
        f"{settings.OSRD_BACKEND_URL}/stdcm",
        headers={"Authorization": "Bearer " + settings.OSRD_BACKEND_TOKEN},
        json=payload,
    )
    if not response:
        raise make_exception_from_error(response, InvalidSTDCMInput, InternalSTDCMError)
    return response.json()