<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ExtendAnomalies(self, other):
 """Merge anomalies from another CheckResult."""

    for o in other:
      if o is not None:
        self.anomaly.Extend(list(o.anomaly))