<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def td_contents(self, item, attr_list):
 """Given an item and an attr, return the contents of the td. This method is a likely candidate to override when extending the Col class, which is done in LinkCol and ButtonCol. Override this method if you need to get some extra data from the item. Note that the output of this function is NOT escaped. """

        return self.td_format(self.from_attr_list(item, attr_list))