Given an execution trace, returns a python set object containing the names of each block for which the user code
    was executed. Block names can be set via set_debug_name().

def executed_block_set(trace):
    """
    Given an execution trace, returns a python set object containing the names of each block for which the user code
    was executed. Block names can be set via set_debug_name().
    """
    executed_set = set()
    for entry in trace:
        if entry[0] == 'execute':
            executed_set.add(entry[get_trace_index('execute', 'BLOCK_NAME')])
    return executed_set