def METHOD_NAME():
    data = sc.ones(dims=['x'], shape=[9], dtype='int64')
    da = sc.DataArray(data=data, coords={'x': x})
    expected = sc.DataArray(
        data=sc.array(dims=['x'], values=[1], dtype='int64'),
        coords={'x': sc.array(dims=['x'], values=[0, 9])},
    )
    assert sc.identical(merge_equal_adjacent(da), expected)