def METHOD_NAME(sagemaker_session, rl_framework, rl_coach_version, cpu_instance_type):
    source_dir = os.path.join(DATA_DIR, "coach_cartpole")
    dependencies = [os.path.join(DATA_DIR, "sagemaker_rl")]
    cartpole = "train_coach.py"
    return RLEstimator(
        toolkit=RLToolkit.COACH,
        toolkit_version=rl_coach_version,
        framework=rl_framework,
        entry_point=cartpole,
        source_dir=source_dir,
        role="SageMakerRole",
        instance_count=1,
        instance_type=cpu_instance_type,
        sagemaker_session=sagemaker_session,
        dependencies=dependencies,
        hyperparameters={
            "save_model": 1,
            "RLCOACH_PRESET": "preset_cartpole_clippedppo",
            "rl.agent_params.algorithm.discount": 0.9,
            "rl.evaluation_steps:EnvironmentEpisodes": 1,
        },
    )