def get_topic_list_by_ids(topic_ids: List[str]) -> List[Topic]:
    # return template.find(TOPICS, {"topicId": {"$in": topic_ids}}, Topic)
    # print(topic_ids)
    if len(topic_ids) > 0:
        where = {"topicId": {"in": topic_ids}}
        return find_(where, Topic, TOPICS)
    else:
        return list_all(Topic, TOPICS)
def load_enum_list():
    # return template.find_all(ENUMS, Enum)
    return list_all(Enum, ENUMS)
def load_pipeline_list():
    # return template.find_all(PIPELINES, Pipeline)
    return list_all(Pipeline, PIPELINES)
def load_all_topic() -> List[Topic]:
    # return template.find_all(TOPICS, Topic)
    return list_all(Topic, TOPICS)
def load_enum_items_by_enum_name(enum_name) -> List[EnumItem]:
    enum_name_collection = __build_enum_item_name(enum_name)
    return list_all(EnumItem, enum_name_collection)