code: def get_referenced_object_as_list(
          prev_obj, obj, dot_separated_name, desired_type=None):
      
      res = get_referenced_object(prev_obj, obj, dot_separated_name,
                                  desired_type)
      if res is None:
          return []
      elif type(res) is list:
          return res
      else:
          return [res]
docs: Same as get_referenced_object, but always returns a list.
  
      Args:
          prev_obj: see get_referenced_object
          obj: see get_referenced_object
          dot_separated_name: see get_referenced_object
          desired_type: see get_referenced_object
  
      Returns:
          same as get_referenced_object, but always returns a list