code: def test_decode_hdr():
      """Test case for decode_hdr"""
      # image from http://gl.ict.usc.edu/Data/HighResProbes/
      filename = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_image",
          "glacier.hdr",
      )
  
      contents = tf.io.read_file(filename)
      hdr = tfio.experimental.image.decode_hdr(contents)
      assert hdr.dtype == tf.float32
      assert hdr.shape == [1024, 2048, 3]
      rgb = tf.image.convert_image_dtype(hdr, tf.uint8)
      _ = tf.image.encode_png(rgb)
  
imports: import os
  import numpy
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 9 for calling a global function with example usage: test_decode_hdr() without return types