def get_arguments(omit=None):
    """Get a calling function's arguments.

    Returns:

    args : dict
        The calling function's  arguments.
    """
    from inspect import getargvalues, stack
    if omit is None:
        omit = []
    _args, _, _, _vars = getargvalues(stack()[1][0])
    args = {}
    for name in _args:
        if name in omit:
            continue
        args[name] = _vars[name]
    return args
