class_docstr: State Interpreter that interpret execution result of qlib executor into rl env state
class_docstr_tok: ["State","Interpreter","that","interpret","execution","result","of","qlib","executor","into","rl","env","state"]
docstr: Validate whether an observation belongs to the pre-defined observation space.
docstr_tok: ["Validate","whether","an","observation","belongs","to","the","pre-defined","observation","space","."]
code: def validate(self, obs: ObsType) -> None:
      """Validate whether an observation belongs to the pre-defined observation space."""
      _gym_space_contains(self.observation_space, 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 3 for calling the StateInterpreter obj's underlying member method code with example usage: obj.validate(obs) without return types