def METHOD_NAME(existing_session: bool) -> None:
    """Test that the default client config is updated from runtime configuration.
    Run twice. 1. Clean start with no existing session attached.
    2. With session in thread local (session is updated)
    """
    cfg = {
        'RUNTIME__REQUEST_TIMEOUT': random.randrange(1, 100),
        'RUNTIME__REQUEST_MAX_ATTEMPTS': random.randrange(1, 100),
        'RUNTIME__REQUEST_BACKOFF_FACTOR': random.randrange(1, 100),
        'RUNTIME__REQUEST_MAX_RETRY_DELAY': random.randrange(1, 100),
    }
    os.environ.update({key: str(value) for key, value in cfg.items()})
    dlt.pipeline(pipeline_name='dummy_pipeline')
    session = default_client.session
    assert session.timeout == cfg['RUNTIME__REQUEST_TIMEOUT']
    retry = session.request.retry  # type: ignore[attr-defined]
    assert retry.wait.multiplier == cfg['RUNTIME__REQUEST_BACKOFF_FACTOR']
    assert retry.stop.max_attempt_number == cfg['RUNTIME__REQUEST_MAX_ATTEMPTS']
    assert retry.wait.max == cfg['RUNTIME__REQUEST_MAX_RETRY_DELAY']