code: def test_reshape_copy():
      a = asarray(np.ones((2, 3)))
      b = reshape(a, (3, 2), copy=True)
      assert not np.shares_memory(a._array, b._array)
  
      a = asarray(np.ones((2, 3)))
      b = reshape(a, (3, 2), copy=False)
      assert np.shares_memory(a._array, b._array)
  
      a = asarray(np.ones((2, 3)).T)
      b = reshape(a, (3, 2), copy=True)
      assert_raises(
          AttributeError, lambda: reshape(a, (2, 3), copy=False)
      )
  
file_path: numpy/numpy/array_api/tests/test_manipulation_functions.py
imports: from numpy.testing import assert_raises
  import numpy
  from ..None import all
  from .._creation_functions import asarray
  from .._dtypes import float64, int8
  from .._manipulation_functions import concat, reshape, stack
label_desc: Use image node_id 3 for calling a global function with example usage: test_reshape_copy() without return types