code: def test_read_dwi():
      img = didr.mosaic_to_nii(DATA)
      arr = img.get_fdata()
      assert arr.shape == (128, 128, 48)
      assert_array_almost_equal(img.affine, EXPECTED_AFFINE)
  
file_path: nibabel/nibabel/nicom/tests/test_dicomreaders.py
imports: from os.path import join
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nibabel.optpkg import optional_package
  from ..None import dicomreaders
  from .test_dicomwrappers import DATA, EXPECTED_AFFINE, EXPECTED_PARAMS, IO_DATA_PATH
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_dwi() without return types