code: def test_operator_cast_empty_volumes():
      types = [np.uint8, np.int32, np.float32]
      for device in ["cpu", "gpu"]:
          for in_type in types:
              for out_type in types:
                  ndim = rng.integers(0, 4)
  
                  batch_size = rng.integers(12, 64)
                  for empty_volume_policy in [
                      rng.choice(["left", "right", "middle", "mixed"]),
                      "all",
                  ]:
                      yield (
                          _test_operator_cast,
                          ndim,
                          batch_size,
                          in_type,
                          out_type,
                          device,
                          empty_volume_policy,
                      )
  
file_path: DALI/dali/test/python/operator_1/test_cast.py
imports: import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  from nose.tools import nottest
  from nvidia.dali import pipeline_def
  from test_utils import np_type_to_dali
  import itertools
  from nose2.tools import params
label_desc: Use image node_id 7 for calling a global function with example usage: test_operator_cast_empty_volumes() without return types