class_docstr: Base class for an Agent operating in an environment.
class_docstr_tok: ["Base","class","for","an","Agent","operating","in","an","environment","."]
code: def act(
      self,
      observation: tp.Any,
      reward: tp.Any,
      done: bool,
      info: tp.Optional[tp.Dict[tp.Any, tp.Any]] = None,
  ) -> tp.Any:
      raise NotImplementedError
  
imports: import typing
  from collections import defaultdict
  import gym
label_desc: Use image node_id 1 for calling the Agent obj's underlying member method code with example usage: obj.act(observation, reward, done, info) without return types