def _get_from_format_dict(format_dict, key):
    """Return a value from our format dict."""
    if isinstance(format_dict[key], str):
        return format_dict[key]
    elif isinstance(format_dict[key], (list, tuple)):
        fn_list = list(format_dict[key])
        function = fn_list.pop(0)

        if len(fn_list):
            args = fn_list.pop(0)
        else:
            args = []

        if len(fn_list):
            kwargs = fn_list.pop(0)
        else:
            kwargs = {}

        return function(*args, **kwargs)
Return a value from our format dict.