def maybe_asynchronous(f):
    def wrapped(*args, **kwargs):
        try:
            callback = kwargs.pop('callback')
        except __HOLE__:
            callback = None

        result = f(*args, **kwargs)

        if callback is not None:
            callback(result)
        else:
            return result
    return wrapped
dataset/ETHPy150Open Lothiraldan/ZeroServices/zeroservices/utils.py/maybe_asynchronous