code: def test_scalar_constant_promotion():
      yield _test_scalar_constant_promotion, "cpu"
      yield _test_scalar_constant_promotion, "gpu"
  
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  from nvidia.dali import Pipeline
  from test_utils import check_batch
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 7 for calling a global function with example usage: test_scalar_constant_promotion() without return types