code: def _labels(record):
      if len(record.detection.label_ids) == 0:
          return torch.empty(0)
      else:
          tensor_label_ids = tensor(record.detection.label_ids)
          labels = convert_background_from_zero_to_last(
              label_ids=tensor_label_ids,
              class_map=record.detection.class_map,
          )
          return labels
  
file_path: icevision/icevision/models/mmdet/common/bbox/dataloaders.py
imports: from icevision.models.mmdet.common.utils import convert_background_from_zero_to_last
  from icevision.core import *
  from icevision.imports import *
  from icevision.models.utils import *
label_desc: Use image node_id 9 for calling a global function with example usage: _labels(record) and returns: torch, labels