code: def test__copytobuffer__xarray_scalar():
      xarray = pytest.importorskip("xarray")
      assert _copytobuffer(xarray.DataArray(numpy.array(1))) == (
          array("d", [1]),
          DataType.FLOAT,
      )
  
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 4 for calling a global function with example usage: test__copytobuffer__xarray_scalar() without return types