def construct_failure_signature(stage_id, test_map):
    """ Old characterize specific ML method """
    signature = ''
    for test_index, document_list in test_map.items():
        signature += str(test_index)
        for document in document_list:
            signature += document[0][0] + document[1] + '|'
    return stage_id, signature
