class_docstr: Simple Env wrapper to override observations with rendered rgb values.
code: def _maybe_resize(self, obs):
      if not self.should_resize:
          return obs
      height, width = self.observation_space.shape[:2]
      img = Image.fromarray(obs)
      img = img.resize([width, height], resample=Image.ANTIALIAS)
      if self.output_dtype is None:
          return np.array(img)
      return np.array(img).astype(self.output_dtype)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from absl import logging
  import gym
  import gym.wrappers
  import numpy
  from PIL import Image
label_desc: Use image node_id 2 for calling the RenderedEnv obj's underlying member method code with example usage: obj._maybe_resize(obs) and returns: np, obs, np