code: def test_coin_flip():
      batch_size = 8
      for device in ["cpu", "gpu"]:
          for max_shape, use_shape_like_in in [
              ([100000], False),
              ([100000], True),
              (None, False),
          ]:
              for probability in [None, 0.7, 0.5, 0.0, 1.0]:
                  yield check_coin_flip, device, batch_size, max_shape, probability, use_shape_like_in
  
imports: import numpy
  import nvidia.dali
  from nvidia.dali.backend_impl import TensorListGPU
  from nvidia.dali.pipeline import Pipeline
label_desc: Use image node_id 3 for calling a global function with example usage: test_coin_flip() without return types