

def make_method(method_name, method_):

    def method__(*args, **kwargs):
        return method_(*args, **kwargs)
    method__.__name__ = method_name
    return method__

dataset/ETHPy150Open hyde/hyde/hyde/util.py make_method/original