code: def __str__(self) -> str:
      return (
          f"{self.message}\n  Space: {self.space}\n  Sample: {self.x}"
      )
  
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 GymSpaceValidationError obj's underlying member method code with example usage: obj.__str__() and returns: self, str, self, str, self