def METHOD_NAME(session_scoped_container_getter):
    def _get_service_url(service_name):
        service = session_scoped_container_getter.get(service_name).network_info[0]
        service_url = f"http://localhost:{service.host_port}/{SERVICE_ROUTES[service_name]}"
        return service_url
    # this will run only once per entire test session and ensures that all the services
    # in docker containers are ready. Increase the sleep value in case services need a bit
    # more time to run on your machine.
    time.sleep(8)
    return _get_service_url