class_docstr: A (possibly unbounded) box in :math:`\mathbb{R}^n`.
  
  Specifically, a Box represents the Cartesian product of n closed intervals.
  Each interval has the form of one of :math:`[a, b]`, :math:`(-\infty, b]`,
  :math:`[a, \infty)`, or :math:`(-\infty, \infty)`.
  
  There are two common use cases:
  
  * Identical bound for each dimension::
  
      >>> Box(low=-1.0, high=2.0, shape=(3, 4), dtype=np.float32)
      Box(3, 4)
  
  * Independent bound for each dimension::
  
      >>> Box(low=np.array([-1.0, -2.0]), high=np.array([2.0, 4.0]), dtype=np.float32)
      Box(2,)
docstr: Sets the state of the box for unpickling a box with legacy support.
docstr_tok: ["Sets","the","state","of","the","box","for","unpickling","a","box","with","legacy","support","."]
code: def __setstate__(self, state: Dict):
      """Sets the state of the box for unpickling a box with legacy support."""
      super().__setstate__(state)
  
      # legacy support through re-adding "low_repr" and "high_repr" if missing from pickled state
      if not hasattr(self, "low_repr"):
          self.low_repr = _short_repr(self.low)
  
      if not hasattr(self, "high_repr"):
          self.high_repr = _short_repr(self.high)
  
imports: from typing import Dict, List, Optional, Sequence, SupportsFloat, Tuple, Type, Union
  import numpy
  import gym.error
  from gym import logger
  from gym.spaces.space import Space
label_desc: Use image node_id 11 for calling the Box obj's underlying member method code with example usage: obj.__setstate__(state) without return types