code: def test_frame_from_numpy_array(using_copy_on_write, copy):
      arr = np.array([[1, 2], [3, 4]])
      df = DataFrame(arr, copy=copy)
  
      if using_copy_on_write and copy is not False or copy is True:
          assert not np.shares_memory(get_array(df, 0), arr)
      else:
          assert np.shares_memory(get_array(df, 0), arr)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, Period, PeriodIndex, Series, Timedelta, TimedeltaIndex, Timestamp
  import pandas._testing
  from pandas.tests.copy_view.util import get_array
label_desc: Use image node_id 16 for calling a global function with example usage: test_frame_from_numpy_array(using_copy_on_write, copy) without return types