code: def predict(self, obs):
      Q_list = self.Q[obs, :]
      maxQ = np.max(Q_list)
      action_list = np.where(Q_list == maxQ)[0]  # maxQ可能对应多个action
      action = np.random.choice(action_list)
      return action
  
file_path: PARL/examples/tutorials/lesson2/sarsa/agent.py
imports: import numpy
label_desc: Use image node_id 3 for calling the SarsaAgent obj's underlying member method code with example usage: obj.predict(obs) and returns: action