code: def test_decode_dicom_image(fname, exp_shape):
      """test_decode_dicom_image"""
  
      dcm_path = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_dicom",
          fname,
      )
  
      file_contents = tf.io.read_file(filename=dcm_path)
  
      dcm_image = tfio.image.decode_dicom_image(
          contents=file_contents,
          dtype=tf.float32,
          on_error="strict",
          scale="auto",
          color_dim=True,
      )
      assert dcm_image.numpy().shape == exp_shape
  
file_path: io/tests/test_dicom.py
imports: import os
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 2 for calling a global function with example usage: test_decode_dicom_image(fname, exp_shape) without return types