code: def filter_valid(
      output, target, ignore_label=IGNORE_LABEL, other=None
  ):
      """Removes predictions for nodes without ground truth"""
      idx = target != ignore_label
      if other is not None:
          return output[idx, :], target[idx], other[idx, ...]
      return output[idx, :], target[idx]
  
imports: from typing import Any
  from collections import OrderedDict
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.autograd import Variable
  from torch_points3d.datasets.segmentation import IGNORE_LABEL
  from .metric_losses import *
label_desc: Use image node_id 1 for calling a global function with example usage: filter_valid(output, target, ignore_label, other) and returns: output,  target, output,  target,  other