def typed_node_from_id(id: str) -> TypedNode:
    """
    Get typed node from id

    :param id: id as curie
    :return: TypedNode object
    """
    filter_out_types = [
        'cliqueLeader',
        'Class',
        'Node',
        'Individual',
        'quality',
        'sequence feature'
    ]
    node = next(get_scigraph_nodes([id]))

    if 'lbl' in node:
        label = node['lbl']
    else:
        label = None  # Empty string or None?

    types = [typ.lower() for typ in node['meta']['types']
             if typ not in filter_out_types]

    return TypedNode(
        id=node['id'],
        label=label,
        type=types[0],
        taxon = get_taxon(id)
    )
def typed_node_from_id ( id : str ) -> TypedNode : filter_out_types = [ 'cliqueLeader' , 'Class' , 'Node' , 'Individual' , 'quality' , 'sequence feature' ] node = next ( get_scigraph_nodes ( [ id ] ) ) if 'lbl' in node : label = node [ 'lbl' ] else : label = None types = [ typ . lower ( ) for typ in node [ 'meta' ] [ 'types' ] if typ not in filter_out_types ] return TypedNode ( id = node [ 'id' ] , label = label , type = types [ 0 ] , taxon = get_taxon ( id ) )
Get typed node from id

    :param id: id as curie
    :return: TypedNode object