code: def test_metadata_cloning(da):
      """Test that metadata gets cloned over."""
      new_da: xr.DataArray = da.clone_using(
          np.random.randn(*da.data.shape),
          use_attrs=True,
          new_name="new_name",
      )
  
      assert new_da.name != da.name
      assert new_da.attrs == da.attrs
  
file_path: pyjanitor/tests/xarray/test_clone_using.py
imports: import numpy
  import pytest
  import xarray
  import janitor
label_desc: Use image node_id 3 for calling a global function with example usage: test_metadata_cloning(da) without return types