code: def clip_remove_empty(
      bbox: TensorBBox,  # Coordinates of bounding boxes
      label: TensorMultiCategory,  # Labels of the bounding boxes
  ):
      "Clip bounding boxes with image border and remove empty boxes along with corresponding labels"
      bbox = torch.clamp(bbox, -1, 1)
      empty = (bbox[..., 2] - bbox[..., 0]) * (
          bbox[..., 3] - bbox[..., 1]
      ) <= 0.0
      return (bbox[~empty], label[TensorBase(~empty)])
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
  import types
label_desc: Use image node_id 2 for calling a global function with example usage: clip_remove_empty(bbox, label) and returns: bbox,  label