def truncate_if_required(explanation, item, max_length=None):
if _should_truncate_item(item):<EOL><INDENT>return _truncate_explanation(explanation)<EOL><DEDENT>return explanation<EOL>
Truncate this assertion explanation if the given test item is eligible.