def wrapper_io(func, fd, args, return_dict):
    '\n    Run a function while redirecting its output to a file descriptor\n    Args:\n        func: A python function to run\n        fd: a file descriptor\n        args: A tuple containing argument for the function\n        return_dict: Dictionary where to put the result of the function\n\n    '
    return_dict['output'] = ''
    with warnings.catch_warnings():
        warnings.simplefilter('ignore')
        if fd:
            with Silence(stdout=fd, stderr=os.devnull, mode='a'):
                return_dict['output'] = func(*args)
        else:
            return_dict['output'] = func(*args)
Run a function while redirecting its output to a file descriptor
Args:
    func: A python function to run
    fd: a file descriptor
    args: A tuple containing argument for the function
    return_dict: Dictionary where to put the result of the function
def wrapper_io(func, fd, args, return_dict):
    '\n    Run a function while redirecting its output to a file descriptor\n    Args:\n        func: A python function to run\n        fd: a file descriptor\n        args: A tuple containing argument for the function\n        return_dict: Dictionary where to put the result of the function\n\n    '
    return_dict['output'] = 
    with warnings.catch_warnings():
        warnings.simplefilter('ignore')
        if fd:
            with Silence(stdout=fd, stderr=os.devnull, mode='a'):
                return_dict['output'] = func(*args)
        else:
            return_dict['output'] = func(*args)