class_docstr: Add observations rendering in 'rgb_array' mode.
class_docstr_tok: ["Add","observations","rendering","in","'rgb_array","'","mode","."]
code: def __init__(self, env):
      super(RenderObservations, self).__init__(env)
      if "rgb_array" not in self.metadata["render.modes"]:
          self.metadata["render.modes"].append("rgb_array")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import os
  import re
  import gym
  import numpy
  import six
  from tensor2tensor.models.research.rl import get_policy
  from tensor2tensor.models.research.rl import make_simulated_env_fn_from_hparams
  from tensor2tensor.rl import rl_utils
  from tensor2tensor.rl.envs.simulated_batch_gym_env import FlatBatchEnv
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import trainer_lib
  from tensor2tensor.utils.misc_utils import camelcase_to_snakecase
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new RenderObservations object from inherited base classes: gym with example: obj = RenderObservations(env)