class_docstr: Action Interpreter that interpret rl agent action into qlib orders
class_docstr_tok: ["Action","Interpreter","that","interpret","rl","agent","action","into","qlib","orders"]
code: def __call__(
      self, simulator_state: StateType, action: PolicyActType
  ) -> ActType:
      self.validate(action)
      obs = self.interpret(simulator_state, action)
      return obs
  
imports: from __future__ import annotations
  from typing import Any, Generic, TypeVar
  import gym
  import numpy
  from gym import spaces
  from qlib.typehint import final
  from .simulator import ActType, StateType
label_desc: Use image node_id 2 for calling the ActionInterpreter obj's underlying member method code with example usage: obj.__call__(simulator_state, action) and returns: obs