def METHOD_NAME():
    """Test finding the shape of a dataset by analyzing axes values"""
    x = np.arange(5)
    y = np.arange(7, 3, -1)
    xx, yy = np.meshgrid(x, y, indexing='ij')
    ret = num.guess_grid_from_sweep_direction(
        x=xx.reshape(-1), y=yy.reshape(-1)
    )
    assert ret[0] == ['x', 'y']
    assert ret[1] == xx.shape
    # also test incomplete grids
    ret = num.guess_grid_from_sweep_direction(
        x=xx.reshape(-1)[:-3], y=yy.reshape(-1)[:-3]
    )
    assert ret[0] == ['x', 'y']
    assert ret[1] == xx.shape