def METHOD_NAME(self, node: Vertex, node_type: str) -> List[Vertex]:
    """Returns the children of a node based on the node type."""
    children = []
    node_types = [node.data["type"]]
    if "node" in node.data:
        node_types += node.data["node"]["base_classes"]
    if node_type in node_types:
        children.append(node)
    return children