code: def test__copytobuffer__array(arr_type):
      in_arr = numpy.array([1])
      if arr_type == "xarray":
          xarray = pytest.importorskip("xarray")
          in_arr = xarray.DataArray(in_arr)
      elif arr_type == "pandas":
          pandas = pytest.importorskip("pandas")
          in_arr = pandas.Series(in_arr)
      assert _copytobuffer(in_arr) == (
          in_arr.astype("d").__array__(),
          DataType.ARRAY,
      )
  
file_path: pyproj/test/test_utils.py
imports: from array import array
  import numpy
  import pytest
  from pyproj.utils import DataType, _copytobuffer, _copytobuffer_return_scalar
label_desc: Use image node_id 5 for calling a global function with example usage: test__copytobuffer__array(arr_type) without return types