def METHOD_NAME(missing: dict[str, np.ndarray],
                     node, filter_node0: bool):
    if node is None:
        return
    nid, node_id = node
    if len(nid) == 0:
        unid = np.unique(node_id)
        #self.log.error(f'node_id={nid} missing nodes={unid}')
        missing['node_id'] = unid
        return
    assert len(nid) > 0, nid
    inode, umissing = find_missing(nid, node_id, 'nodes')
    if filter_node0:
        umissing = np.setdiff1d(umissing, [0])
    if len(umissing):
        missing['node_id'] = umissing
    #del inode, umissing, nid, node_id