code: def test_array_copy():
      a = np.array([1, 2])
      # default is to copy
      b = pd.array(a, dtype=a.dtype)
      assert not tm.shares_memory(a, b)
  
      # copy=True
      b = pd.array(a, dtype=a.dtype, copy=True)
      assert not tm.shares_memory(a, b)
  
      # copy=False
      b = pd.array(a, dtype=a.dtype, copy=False)
      assert tm.shares_memory(a, b)
  
imports: import datetime
  import decimal
  import re
  import numpy
  import pytest
  import pytz
  import pandas
  import pandas._testing
  from pandas.api.extensions import register_extension_dtype
  from pandas.arrays import BooleanArray, DatetimeArray, FloatingArray, IntegerArray, IntervalArray, SparseArray, TimedeltaArray
  from pandas.core.arrays import NumpyExtensionArray, period_array
  from pandas.tests.extension.decimal import DecimalArray, DecimalDtype, to_decimal
label_desc: Use image node_id 3 for calling a global function with example usage: test_array_copy() without return types