code: def test_read_version_1_0_bad_magic():
      for magic in bad_version_magic + malformed_magic:
          f = BytesIO(magic)
          assert_raises(ValueError, format.read_array, f)
  
imports: import sys
  import os
  import warnings
  import pytest
  from io import BytesIO
  import numpy
  from numpy.testing import assert_, assert_array_equal, assert_raises, assert_raises_regex, assert_warns, IS_PYPY, IS_WASM
  from numpy.testing._private.utils import requires_memory
  from numpy.lib import format
  import yatest.common
label_desc: Use image node_id 23 for calling a global function with example usage: test_read_version_1_0_bad_magic() without return types