docs: def hazard_curve_name(dstore, ekey, kind, rlzs_assoc):
      """
      :param calc_id: the calculation ID
      :param ekey: the export key
      :param kind: the kind of key
      :param rlzs_assoc: a RlzsAssoc instance
      """
      key, fmt = ekey
      prefix = {'hcurves': 'hazard_curve', 'hmaps': 'hazard_map',
                'uhs': 'hazard_uhs'}[key]
      if kind.startswith('quantile-'):  # strip the 7 characters 'hazard_'
          fname = dstore.build_fname('quantile_' + prefix[7:], kind[9:], fmt)
      else:
          fname = dstore.build_fname(prefix, kind, fmt)
      return fname