code: def test_array_readwriter(format, shape):
      original_array = np.random.rand(*shape)
      fmt_meta = {"name": format}
  
      with tempfile.TemporaryDirectory() as test_dir:
          path = os.path.join(test_dir, f"nodes.{format}")
          array_readwriter.get_array_parser(**fmt_meta).write(
              path, original_array
          )
          array = array_readwriter.get_array_parser(**fmt_meta).read(
              path
          )
  
          assert original_array.shape == array.shape
          assert np.array_equal(original_array, array)
  
imports: import os
  import tempfile
  import numpy
  import pytest
  from distpartitioning import array_readwriter
label_desc: Use image node_id 1 for calling a global function with example usage: test_array_readwriter(format, shape) without return types