def METHOD_NAME(func, inputs, method_kwargs=None, task_name=""):
    """Loop over inputs an run function"""
    results = []
    callback = method_kwargs.get("callback", None)
    for arguments in progress_bar(inputs, desc=task_name):
        result = func(*arguments)
        if callback is not None:
            result = callback(result)
        results.append(result)
    return results