class_docstr: Internal wrapper read entries in pd.DataFrame as images/labels.
  
  Parameters
  ----------
  dataset : ImageClassificationDataset
      DataFrame as ImageClassificationDataset.
class_docstr_tok: ["Internal","wrapper","read","entries","in","pd.DataFrame","as","images\/labels",".","Parameters","--","--","--","--","--","dataset",":","ImageClassificationDataset","DataFrame","as","ImageClassificationDataset","."]
code: def __getitem__(self, idx):
      im_path = self._dataset["image"][idx]
      img = self._imread(im_path)
      label = None
      if self._has_label:
          label = self._dataset["label"][idx]
      return img, label
  
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 3 for calling the _MXImageClassificationDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: img,  label