'Apply a function.
Parameters
f : callable
The function to call.
args : tuple, optional
The positional arguments.
kwargs : dict, optional
The keyword arguments.
Returns
result : any
f(*args, **kwargs)'

@staticmethod
def apply(f, args=(), kwargs=None):

    return f(*args, **(kwargs or {}))
