code: def create_hierarchy(hierarchy, level):
      
      if level not in hierarchy:
          hierarchy[level] = OrderedDict()
      return hierarchy[level]
docs: Create an OrderedDict
  
      :param hierarchy: a dictionary
      :param level: single key
      :return: deeper dictionary