class_docstr: Agent of Cartpole env.
  
  Args:
      algorithm(parl.Algorithm): algorithm used to solve the problem.
code: def __init__(self, algorithm):
      super(CartpoleAgent, self).__init__(algorithm)
      self.device = torch.device(
          "cuda" if torch.cuda.is_available() else "cpu"
      )
  
file_path: PARL/benchmark/torch/QuickStart/cartpole_agent.py
imports: import parl
  import torch
  import numpy
label_desc: Use image node_id 1 to create a new CartpoleAgent object from inherited base classes: parl with example: obj = CartpoleAgent(algorithm)