def METHOD_NAME(xy_coords: Any):
    assert_instance(xy_coords, xr.DataArray, name='xy_coords')
    assert_true(xy_coords.ndim == 3
                and xy_coords.shape[0] == 2
                and xy_coords.shape[1] >= 2
                and xy_coords.shape[2] >= 2,
                'xy_coords must have dimensions'
                ' (2, height, width) with height >= 2 and width >= 2')