class_docstr: Internal wrapper read entries in pd.DataFrame as images/labels.
  
  Parameters
  ----------
  dataset : ObjectDetectionDataset
      DataFrame as ObjectDetectionDataset.
class_docstr_tok: ["Internal","wrapper","read","entries","in","pd.DataFrame","as","images\/labels",".","Parameters","--","--","--","--","--","dataset",":","ObjectDetectionDataset","DataFrame","as","ObjectDetectionDataset","."]
code: def __init__(self, dataset):
      if mx is None:
          raise RuntimeError(
              "Unable to import mxnet which is required."
          )
      assert isinstance(dataset, ObjectDetectionDataset)
      if not dataset.is_packed():
          dataset = dataset.pack()
      assert "image" in dataset.columns
      assert "rois" in dataset.columns
      self._dataset = dataset
      self.classes = self._dataset.classes
      self._imread = mx.image.imread
  
imports: import logging
  import os
  from pathlib import Path
  import warnings
  import numpy
  import pandas
  import matplotlib.pyplot
  from PIL import Image
  import cv2
  from ..data import is_url, url_data
  from ...utils.filesystem import import_try_install
  from ...utils.bbox import bbox_xywh_to_xyxy, bbox_clip_xyxy
label_desc: Use image node_id 1 to create a new _MXObjectDetectionDataset object from inherited base classes: MXDataset with example: obj = _MXObjectDetectionDataset(dataset)