code: def _img_meta(record):
      img_h, img_w, img_c = record.img.shape
  
      return {
          # TODO: height and width from sample should be before padding
          # "img_shape": (record.img_size.height, record.img_size.width, img_c),
          "img_shape": (img_h, img_w, img_c),
          "pad_shape": (img_h, img_w, img_c),
          "scale_factor": np.ones(4),  # TODO: is scale factor correct?
      }
  
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 8 for calling a global function with example usage: _img_meta(record) and returns: dict