code: def class_boxes(array, label):
      mask = array == label
      cc, _ = scipy.ndimage.measurements.label(mask)
      objects = scipy.ndimage.find_objects(cc)
      return objects2boxes(objects, array.shape)
  
imports: from nose_utils import assert_raises
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import numpy
  import scipy.ndimage
  import scipy.ndimage.measurements
  import random
  from test_utils import check_batch, np_type_to_dali
  from nose.tools import nottest
  from nose.plugins.attrib import attr
label_desc: Use image node_id 10 for calling a global function with example usage: class_boxes(array, label) and returns: objects2boxes