code: def test_random_object_bbox_ignore_class():
      np.random.seed(43210)
      types = [
          np.int8,
          np.uint8,
          np.int16,
          np.uint16,
          np.int32,
          np.uint32,
      ]
      for bg in [None, 0, -1, 5, random_background()]:
          ndim = np.random.randint(1, 5)
          dtype = random.choice(types)
          for format in [None, "anchor_shape", "start_end", "box"]:
              threshold_opt = [
                  None,
                  3,
                  list(range(1, 1 + ndim)),
                  random_threshold(ndim),
              ]
              threshold = random.choice(threshold_opt)
              k_largest_opt = [None, 1, 2, 5]
              k_largest = random.choice(k_largest_opt)
  
              yield (
                  _test_random_object_bbox_ignore_class,
                  5,
                  ndim,
                  dtype,
                  format,
                  bg,
                  threshold,
                  k_largest,
              )
  
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 26 for calling a global function with example usage: test_random_object_bbox_ignore_class() without return types