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: Checks whether the box is bounded in some sense.
  
  Args:
      manner (str): One of ``"both"``, ``"below"``, ``"above"``.
  
  Returns:
      If the space is bounded
  
  Raises:
      ValueError: If `manner` is neither ``"both"`` nor ``"below"`` or ``"above"``
docstr_tok: ["Checks","whether","the","box","is","bounded","in","some","sense",".","Args",":","manner","(","str",")",":","One","of","``","``","both","''","``",",","``","``","below","''","``",",","``","``","above","''","``",".","Returns",":","If","the","space","is","bounded","Raises",":","ValueError",":","If","`","manner","`","is","neither","``","``","both","''","``","nor","``","``","below","''","``","or","``","``","above","''","``"]
code: def is_bounded(self, manner: str = "both") -> bool:
      """Checks whether the box is bounded in some sense.
  
      Args:
          manner (str): One of ``"both"``, ``"below"``, ``"above"``.
  
      Returns:
          If the space is bounded
  
      Raises:
          ValueError: If `manner` is neither ``"both"`` nor ``"below"`` or ``"above"``
      """
      below = bool(np.all(self.bounded_below))
      above = bool(np.all(self.bounded_above))
      if manner == "both":
          return below and above
      elif manner == "below":
          return below
      elif manner == "above":
          return above
      else:
          raise ValueError(
              f"manner is not in {{'below', 'above', 'both'}}, actual value: {manner}"
          )
  
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 4 for calling the Box obj's underlying member method code with example usage: obj.is_bounded(manner) and returns: unknown, below, above