code: def test_scalar_shape():
      largest_prime_smaller_than_2_to_16 = 65521
      prime_larger_than_2_to_16 = 262147
      for shape, layout in [
          (largest_prime_smaller_than_2_to_16, "X"),
          (largest_prime_smaller_than_2_to_16, None),
          (prime_larger_than_2_to_16, "Y"),
          ([3, 5, 7], "ABC"),
          ([3, 5, 7], ""),
          ([13, 15, 7], None),
          (np.array([31, 101, 17], dtype=np.int32), "DEF"),
          ([4, 8, 16, 2], "FGNH"),
          ([100, 10], "WW"),
          (np.array([], dtype=np.int32), None),
      ]:
          for dtype in [np.uint8, np.float32, np.uint16]:
              yield _test_scalar_shape, dtype, shape, layout
  
file_path: DALI/dali/test/python/operator_1/test_inflate.py
imports: import numpy
  from nvidia.dali import pipeline_def, fn, types
  from test_utils import np_type_to_dali, has_operator, restrict_platform
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 6 for calling a global function with example usage: test_scalar_shape() without return types