code: def test_coords_errors(da: xr.DataArray):
      # number of dims should match
      with pytest.raises(ValueError):
          da.clone_using(np.random.randn(10, 10, 10), use_coords=False)
  
      # shape of each axis must match when using coords
      with pytest.raises(ValueError):
          da.clone_using(np.random.randn(10, 10), use_coords=True)
  
file_path: pyjanitor/tests/xarray/test_clone_using.py
imports: import numpy
  import pytest
  import xarray
  import janitor
label_desc: Use image node_id 5 for calling a global function with example usage: test_coords_errors(da) without return types