docstr: Warp frames to 84x84 as done in the Nature paper and later work.
  
  To use this wrapper, OpenCV-Python is required.
docstr_tok: ["Warp","frames","to","84x84","as","done","in","the","Nature","paper","and","later","work",".","To","use","this","wrapper",",","OpenCV-Python","is","required","."]
code: def __init__(self, env, channel_order="hwc"):
      """Warp frames to 84x84 as done in the Nature paper and later work.
  
      To use this wrapper, OpenCV-Python is required.
      """
      if not _is_cv2_available:
          raise RuntimeError(
              "Cannot import cv2 module. Please install OpenCV-Python to use WarpFrame."
          )  # NOQA
      gym.ObservationWrapper.__init__(self, env)
      self.width = 84
      self.height = 84
      shape = {
          "hwc": (self.height, self.width, 1),
          "chw": (1, self.height, self.width),
      }
      self.observation_space = spaces.Box(
          low=0, high=255, shape=shape[channel_order], dtype=np.uint8
      )
  
imports: from collections import deque
  import gym
  import numpy
  from gym import spaces
  import chainerrl
label_desc: Use image node_id 1 to create a new WarpFrame object from inherited base classes: gym with example: obj = WarpFrame(env, channel_order)