def METHOD_NAME(self):
    old_labels = dict(time=pd.Timestamp('2020-01-01T12:00:00'))
    time_coords = [
        pd.Timestamp('2020-01-01T12:00:00+00:00'),
        pd.Timestamp('2020-01-02T12:00:00+00:00')
    ]
    new_labels = ensure_time_label_compatible(
        xr.DataArray([[1, 2], [3, 4]], dims=('x', 'time'),
                     coords=dict(time=time_coords)),
        old_labels
    )
    self.assertEqual(dict(time=pd.Timestamp('2020-01-01T12:00:00+00:00')),
                     new_labels)