def METHOD_NAME(*args, custom_cli_credentials=None, **kwargs):
    """Run a command after assuming the role configured through register_cli_credentials_for_region."""
    region = kwargs.get("region")
    if not region:
        region = os.environ["AWS_DEFAULT_REGION"]
    if region in cli_credentials:
        with sts_credential_provider(region, credential_arn=custom_cli_credentials or cli_credentials.get(region)):
            return run_command(*args, **kwargs)
    else:
        return run_command(*args, **kwargs)