def METHOD_NAME(suite, suite_test, failure_type, use_custom_message):
    message = str(uuid4())
    if use_custom_message:
        add_error_args = '{!r}, '.format(message)
    else:
        add_error_args = ''
    add_error_args += 'exc_info=exc_info'
    code = """