code: def test_unexpected_kwarg(self):
      # ensure than an appropriate TypeError
      # is raised when array2string receives
      # an unexpected kwarg
  
      with assert_raises_regex(TypeError, "nonsense"):
          np.array2string(np.array([1, 2, 3]), nonsense=None)
  
imports: import sys
  import gc
  from hypothesis import given
  from hypothesis.extra import numpy
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_warns, HAS_REFCOUNT, assert_raises_regex
  from numpy.core.arrayprint import _typelessdata
  import textwrap
label_desc: Use image node_id 2 for calling the TestArray2String obj's underlying member method code with example usage: obj.test_unexpected_kwarg() without return types