original_docstring: Render observations from all environments in a tiled image.
          
docstring: Render observations from all environments in a tiled image.
docstring_tokens: Render observations from all environments in a tiled image .
code: def render(
          self, mode: str = "human", *args, **kwargs
      ) -> Union[np.ndarray, None]:
          """Render observations from all environments in a tiled image.
          """
          for write_fn in self._connection_write_fns:
              write_fn((RENDER_COMMAND, (args, {"mode": "rgb", **kwargs})))
          images = [read_fn() for read_fn in self._connection_read_fns]
          tile = tile_images(images)
          if mode == "human":
              import cv2
  
              cv2.imshow("vecenv", tile[:, :, ::-1])
              cv2.waitKey(1)
              return None
          elif mode == "rgb_array":
              return tile
          else:
              raise NotImplementedError
code_tokens: def render ( self , mode : str = "human" , * args , ** kwargs ) -> Union [ np . ndarray , None ] : for write_fn in self . _connection_write_fns : write_fn ( ( RENDER_COMMAND , ( args , { "mode" : "rgb" , ** kwargs } ) ) ) images = [ read_fn ( ) for read_fn in self . _connection_read_fns ] tile = tile_images ( images ) if mode == "human" : import cv2 cv2 . imshow ( "vecenv" , tile [ : , : , : : - 1 ] ) cv2 . waitKey ( 1 ) return None elif mode == "rgb_array" : return tile else : raise NotImplementedError
short_docstring: Render observations from all environments in a tiled image.
short_docstring_tokens: Render observations from all environments in a tiled image .
comment: """Render observations from all environments in a tiled image.
          """