def to_localstack_url(api_id: str, url: str):
    '\n    Converts a API GW url to localstack\n    '
    return url.replace('4566', f'4566/restapis/{api_id}').replace('dev', 'dev/_user_request_')
Converts a API GW url to localstack
def to_localstack_url(api_id: str, url: str):
    '\n    \n    '
    return url.replace('4566', f'4566/restapis/{api_id}').replace('dev', 'dev/_user_request_')