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