code: def test_successful_cloning_coords(da):
      """Test that clone_using coordinates works correctly."""
  
      # with copying coords
      new_da: xr.DataArray = da.clone_using(
          np.random.randn(*da.data.shape)
      )
  
      with pytest.raises(AssertionError):
          np.testing.assert_equal(new_da.data, da.data)
  
      assert all(
          (
              new_coord == old_coord
              for new_coord, old_coord in zip(new_da.coords, da.coords)
          )
      )
      assert new_da.dims == da.dims
  
file_path: pyjanitor/tests/xarray/test_clone_using.py
imports: import numpy
  import pytest
  import xarray
  import janitor
label_desc: Use image node_id 1 for calling a global function with example usage: test_successful_cloning_coords(da) without return types