docs: def ensure_object_is_ordered_dict(item, title):
      """
      Checks that the item is an OrderedDict. If not, raises ValueError.
      """
      assert isinstance(title, str)
  
      if not isinstance(item, OrderedDict):
          msg = "{} must be an OrderedDict. {} passed instead."
          raise TypeError(msg.format(title, type(item)))
  
      return None