docs: def get_risk_files(inputs):
      """
      :param inputs: a dictionary key -> path name
      :returns: a pair (file_type, {risk_type: path})
      """
      rfs = {}
      job_ini = inputs['job_ini']
      for key in inputs:
          if key == 'fragility':
              # backward compatibily for .ini files with key fragility_file
              # instead of structural_fragility_file
              rfs['fragility/structural'] = inputs[
                  'structural_fragility'] = inputs[key]
              del inputs['fragility']
          elif key.endswith(('_fragility', '_vulnerability', '_consequence')):
              match = RISK_TYPE_REGEX.match(key)
              if match and 'retrofitted' not in key and 'consequence' not in key:
                  rfs['%s/%s' % (match.group(2), match.group(1))] = inputs[key]
              elif match is None:
                  raise ValueError('Invalid key in %s: %s_file' % (job_ini, key))
      return rfs