code: def test_bad_magic_args():
      assert_raises(ValueError, format.magic, -1, 1)
      assert_raises(ValueError, format.magic, 256, 1)
      assert_raises(ValueError, format.magic, 1, -1)
      assert_raises(ValueError, format.magic, 1, 256)
  
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
label_desc: Use image node_id 24 for calling a global function with example usage: test_bad_magic_args() without return types