code: def _masks(record):
      if len(record.detection.masks) == 0:
          raise RuntimeError(
              "Negative samples still needs to be implemented. This error might appear due to cropping, please check your transformations."
          )
      else:
          mask = record.detection.mask_array.data
          _, h, w = mask.shape
          return BitmapMasks(mask, height=h, width=w)
  
file_path: icevision/icevision/models/mmdet/common/mask/dataloaders.py
imports: from mmdet.core import BitmapMasks
  from icevision.core import *
  from icevision.imports import *
  from icevision.models.utils import *
  from icevision.models.mmdet.common.bbox.dataloaders import _img_tensor, _img_meta, _labels, _bboxes
label_desc: Use image node_id 8 for calling a global function with example usage: _masks(record) and returns: BitmapMasks