docs: def build_riskinputs(self, kind):
          """
          :param kind:
              kind of hazard getter, can be 'poe' or 'gmf'
          :returns:
              a list of RiskInputs objects, sorted by IMT.
          """
          logging.info('Building risk inputs from %d realization(s)', self.R)
          imtls = self.oqparam.imtls
          if not set(self.oqparam.risk_imtls) & set(imtls):
              rsk = ', '.join(self.oqparam.risk_imtls)
              haz = ', '.join(imtls)
              raise ValueError('The IMTs in the risk models (%s) are disjoint '
                               "from the IMTs in the hazard (%s)" % (rsk, haz))
          self.riskmodel.taxonomy = self.assetcol.tagcol.taxonomy
          with self.monitor('building riskinputs', autoflush=True):
              riskinputs = list(self._gen_riskinputs(kind))
          assert riskinputs
          logging.info('Built %d risk inputs', len(riskinputs))
          return riskinputs