def _make_xy_sfunc(func, ndim_output=False):
    if ndim_output:
        def sfunc(x, y):
            return np.array([func(a, y.ravel()) for a in x])[:, 0]
    else:
        def sfunc(x, y):
            return np.array([func(a, y.ravel()) for a in x])
    sfunc.__name__ = '.'.join(['score_func', func.__module__, func.__name__])
    sfunc.__doc__ = func.__doc__
    return sfunc


# makes score funcs attr accessible for users
Return a generator of users
dataset/ETHPy150Open mne-tools/mne-python/mne/preprocessing/ica.py/_make_xy_sfunc--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/database/v1/_proxy.py/Proxy.users