code: def check_imts(self, imts):
          
          for trt in self.values:
              for gsim in self.values[trt]:
                  for attr in dir(gsim):
                      coeffs = getattr(gsim, attr)
                      if not isinstance(coeffs, CoeffsTable):
                          continue
                      for imt in imts:
                          if imt.startswith('SA'):
                              try:
                                  coeffs[from_string(imt)]
                              except KeyError:
                                  raise ValueError(
                                      '%s is out of the period range defined '
                                      'for %s' % (imt, gsim))
docs: Make sure the IMTs are recognized by all GSIMs in the logic tree