code: def _is_timeout(self):
          ''' try to find out whether the tool terminated because of a timeout '''
          if self.cputime is None:
              is_cpulimit = False
          else:
              rlimits = self.runSet.benchmark.rlimits
              if SOFTTIMELIMIT in rlimits:
                  limit = rlimits[SOFTTIMELIMIT]
              elif TIMELIMIT in rlimits:
                  limit = rlimits[TIMELIMIT]
              else:
                  limit = float('inf')
              is_cpulimit = self.cputime > limit
  
          if self.walltime is None:
              is_walllimit = False
          else:
              rlimits = self.runSet.benchmark.rlimits
              if WALLTIMELIMIT in rlimits:
                  limit = rlimits[WALLTIMELIMIT]
              else:
                  limit = float('inf')
              is_walllimit = self.walltime > limit
  
          return is_cpulimit or is_walllimif _is_timeout(self):
          ''' try to find out whether the tool terminated because of a timeout '''
          if self.cputime is None:
              is_cpulimit = False
          else:
              rlimits = self.runSet.benchmark.rlimits
              if SOFTTIMELIMIT in rlimits:
                  limit = rlimits[SOFTTIMELIMIT]
              elif TIMELIMIT in rlimits:
                  limit = rlimits[TIMELIMIT]
              else:
                  limit = float('inf')
              is_cpulimit = self.cputime > limit
  
          if self.walltime is None:
              is_walllimit = False
          else:
              rlimits = self.runSet.benchmark.rlimits
              if WALLTIMELIMIT in rlimits:
                  limit = rlimits[WALLTIMELIMIT]
              else:
                  limit = float('inf')
              is_walllimit = self.walltime > limit
  
          return is_cpulimit or is_walllimit
docs: try to find out whether the tool terminated because of a timeout