class_docstr: Agent of Cartpole env.
  
  Args:
      algorithm(parl.Algorithm): algorithm used to solve the problem.
code: def __init__(
      self, algorithm, act_dim, e_greed=0.1, e_greed_decrement=0
  ):
      super(CartpoleAgent, self).__init__(algorithm)
      assert isinstance(act_dim, int)
      self.act_dim = act_dim
  
      self.global_step = 0
      self.update_target_steps = 200
  
      self.e_greed = e_greed
      self.e_greed_decrement = e_greed_decrement
  
file_path: PARL/examples/DQN/cartpole_agent.py
imports: import parl
  import paddle
  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, act_dim, e_greed, e_greed_decrement)