code: def __init__(self, algorithm, config):
      super(PPOAgent, self).__init__(algorithm)
  
      self.config = config
      self.device = torch.device(
          "cuda" if torch.cuda.is_available() else "cpu"
      )
      if self.config["lr_decay"]:
          self.lr_scheduler = LinearDecayScheduler(
              self.config["initial_lr"], self.config["num_updates"]
          )
  
file_path: PARL/benchmark/torch/ppo/agent.py
imports: import parl
  import torch
  import numpy
  from parl.utils.scheduler import LinearDecayScheduler
label_desc: Use image node_id 1 to create a new PPOAgent object from inherited base classes: parl with example: obj = PPOAgent(algorithm, config)