def helper_test_transfer_xa(tag, ts, xa_new):
        """static cov or metadata must be identical between xarray and TimeSeries"""
        if tag == STATIC_COV_TAG:
            assert xa_new.attrs[STATIC_COV_TAG].equals(ts.static_covariates)
        else:  # metadata
            assert xa_new.attrs[METADATA_TAG] == ts.metadata
static cov or metadata must be identical between xarray and TimeSeries
darts/tests/test_timeseries_static_covariates.py