import traceback


def _extract_stack(count=5):
    """
    Helper function to extract the function stack.
    :param count: Number of stack(last most) to extract.
    :return: function names as string.
    """
    result = ''
    for t in traceback.extract_stack()[:count]:
        result += '{0}->'.format(t[2])
    return result