code: def obs_to_dict(obs):
      """
      Convert an observation into a dict.
      """
      if isinstance(obs, dict):
          return obs
      return {None: obs}
  
imports: from collections import OrderedDict
  import gym
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: obs_to_dict(obs) and returns: dict, obs