class_docstr: Pascal VOC dataset load
  
  Parameters
  ----------------
  root: str, example:'./data/VOCdevkit'.
  splits_names: tuple, ((year, trainval)).
  classes: list[str], If you using custom-voc dataset,     you need to config the name of custom objects.
  difficult: bool, False ignore voc xml difficult value.
class_docstr_tok: ["Pascal","VOC","dataset","load","Parameters","--","--","--","--","--","--","--","--","root",":","str",",","example",":","'.\/data\/VOCdevkit","'",".","splits_names",":","tuple",",","(","(","year",",","trainval",")",")",".","classes",":","list","[","str","]",",","If","you","using","custom-voc","dataset",",","you","need","to","config","the","name","of","custom","objects",".","difficult",":","bool",",","False","ignore","voc","xml","difficult","value","."]
docstr: Check if label is correct.
docstr_tok: ["Check","if","label","is","correct","."]
code: def _check_label(self, label, width=1, height=1):
      """Check if label is correct."""
      xmin = label[:, 0]
      ymin = label[:, 1]
      xmax = label[:, 2]
      ymax = label[:, 3]
      assert (
          (0 <= xmin) & (xmin < width)
      ).any(), "xmin must in [0, {}), given {}".format(width, xmin)
      assert (
          (0 <= ymin) & (ymin < height)
      ).any(), "ymin must in [0, {}), given {}".format(height, ymin)
      assert (
          (xmin < xmax) & (xmax <= width)
      ).any(), "xmax must in ({}, {}], given {}".format(
          xmin, width, xmax
      )
      assert (
          (ymin < ymax) & (ymax <= height)
      ).any(), "ymax must in ({}, {}], given {}".format(
          ymin, height, ymax
      )
  
file_path: analytics-zoo/pyzoo/zoo/orca/data/image/voc_dataset.py
imports: import numpy
  import os
  import os.path
  from PIL import Image
  import logging
label_desc: Use image node_id 7 for calling the VOCDatasets obj's underlying member method code with example usage: obj._check_label(label, width, height) without return types