code: def obsres_from_dict(values):
      
  
      obsres = ObservationResult()
  
      ikey = 'frames'
      # Workaround
      if 'images' in values:
          ikey = 'images'
  
      obsres.id = values.get('id', 1)
      obsres.mode = values['mode']
      obsres.instrument = values['instrument']
      obsres.configuration = values.get('configuration', 'default')
      obsres.pipeline = values.get('pipeline', 'default')
      obsres.children = values.get('children',  [])
      obsres.parent = values.get('parent', None)
      obsres.results = values.get('results', {})
      obsres.requirements = values.get('requirements', {})
      try:
          obsres.frames = [dataframe_from_list(val) for val in values[ikey]]
      except Exception:
          obsres.frames = []
  
      return obsres
docs: Build a ObservationResult object from a dictionary.