class_docstr: An n-shape binary space.
  
  Elements of this space are binary arrays of a shape that is fixed during construction.
  
  Example Usage::
  
      >>> observation_space = MultiBinary(5)
      >>> observation_space.sample()
          array([0, 1, 0, 1, 0], dtype=int8)
      >>> observation_space = MultiBinary([3, 2])
      >>> observation_space.sample()
          array([[0, 0],
              [0, 1],
              [1, 1]], dtype=int8)
class_docstr_tok: ["An","n-shape","binary","space",".","Elements","of","this","space","are","binary","arrays","of","a","shape","that","is","fixed","during","construction",".","Example","Usage",":",":",">",">",">","observation_space","=","MultiBinary","(","5",")",">",">",">","observation_space.sample","(",")","array","(","[","0",",","1",",","0",",","1",",","0","]",",","dtype=int8",")",">",">",">","observation_space","=","MultiBinary","(","[","3",",","2","]",")",">",">",">","observation_space.sample","(",")","array","(","[","[","0",",","0","]",",","[","0",",","1","]",",","[","1",",","1","]","]",",","dtype=int8",")"]
docstr: Checks whether this space can be flattened to a :class:`spaces.Box`.
docstr_tok: ["Checks","whether","this","space","can","be","flattened","to","a",":","class",":","`","spaces.Box","`","."]
code: def is_np_flattenable(self):
      """Checks whether this space can be flattened to a :class:`spaces.Box`."""
      return True
  
file_path: gym/gym/spaces/multi_binary.py
imports: from typing import Optional, Sequence, Tuple, Union
  import numpy
  from gym.spaces.space import Space
label_desc: Use image node_id 3 for calling the MultiBinary obj's underlying member method code with example usage: obj.is_np_flattenable() and returns: True