def METHOD_NAME(self, nb):
    new_cells = []
    for cell in nb.cells:
        m = cell.get("metadata", {})
        if IGNORE_CELL_TAG in m.get("tags", []) or \
                m.get(CELL_METADATA_KEY, {}).get("ignore", False):
            continue
        new_cells.append(cell)
    nb.cells = new_cells