code: def create_appo_cartpole_checkpoint(output_dir):
      # enable_connectors defaults to True. Just trying to be explicit here.
      config = (
          APPOConfig()
          .environment("CartPole-v1")
          .rollouts(enable_connectors=True)
      )
      # Build algorithm object.
      algo = config.build()
      algo.save(checkpoint_dir=output_dir)
  
imports: import random
  from ray.rllib.algorithms.appo import APPOConfig
  from ray.rllib.algorithms.sac import SACConfig
label_desc: Use image node_id 1 for calling a global function with example usage: create_appo_cartpole_checkpoint(output_dir) without return types