code: def get_gym_env_config(env):
      """Creates an instance of :class:`~texar.tf.agents.EnvConfig`
      from a :gym:`gym env <#environments>`.
  
      Args:
          env: An instance of OpenAI gym Environment.
  
      Returns:
          An instance of :class:`~texar.tf.agents.EnvConfig`.
      """
      from texar.tf.agents.agent_utils import EnvConfig
  
      return EnvConfig(
          action_space=env.action_space,
          observ_space=env.observation_space,
          reward_range=env.reward_range,
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: get_gym_env_config(env) and returns: EnvConfig