code: def test_read_float(
      self, data_shape, filename, expected_shape, dtype
  ):
      test_image = np.random.rand(*data_shape).astype(dtype)
      with tempfile.TemporaryDirectory() as tempdir:
          filename = os.path.join(tempdir, filename)
          nrrd.write(filename, test_image.astype(dtype))
          reader = NrrdReader()
          result = reader.read(filename)
      self.assertEqual(result.array.dtype, dtype)
      self.assertTupleEqual(result.array.shape, expected_shape)
      self.assertTupleEqual(
          tuple(result.header["sizes"]), expected_shape
      )
      np.testing.assert_allclose(result.array, test_image)
  
file_path: MONAI/tests/test_nrrd_reader.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from unittest.case import skipUnless
  import numpy
  from parameterized import parameterized
  from monai.data import NrrdReader
  from monai.utils.module import optional_import
label_desc: Use image node_id 3 for calling the TestNrrdReader obj's underlying member method code with example usage: obj.test_read_float(data_shape, filename, expected_shape, dtype) without return types