def METHOD_NAME() -> Iterator[None]:
    """Handle change in https://github.com/spulec/moto/issues/1924.
    Ensure AWS SDK finds some (bogus) credentials in the environment and
    doesn't try to use other providers.
    """
    overrides = {
        "AWS_ACCESS_KEY_ID": "testing",
        "AWS_SECRET_ACCESS_KEY": "testing",
        "AWS_DEFAULT_REGION": "us-east-1",
    }
    saved_env: Dict[str, Optional[str]] = {}
    for key, value in overrides.items():
        LOG.info("Overriding env var: %s=%s", key, value)
        saved_env[key] = os.environ.get(key, None)
        os.environ[key] = value
    yield
    for key, value in saved_env.items():
        LOG.info("Restoring saved env var: %s=%s", key, value)
        if value is None:
            os.environ.pop(key, None)  # handle key missing
        else:
            os.environ[key] = value
    saved_env.clear()