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"]
docstr: Validate whether an action belongs to the pre-defined action space.
docstr_tok: ["Validate","whether","an","action","belongs","to","the","pre-defined","action","space","."]
code: def validate(self, action: PolicyActType) -> None:
      """Validate whether an action belongs to the pre-defined action space."""
      _gym_space_contains(self.action_space, action)
  
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 3 for calling the ActionInterpreter obj's underlying member method code with example usage: obj.validate(action) without return types