def gen_title_from_stack_info(stack_info, func_name):
    """ it will generate the title from stack info.

    """
    text = stack_info[-2][-1]
    index = text.rfind('.' + func_name)
    return text[:index] + ' :'
