<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def points(self, include_hidden=False):
 """Return the number of points awarded to this submission."""

        return sum(x.points for x in self.testable_results
                   if include_hidden or not x.testable.is_hidden)