docs: def build_loss_curve_dt(curve_resolution, insured_losses=False):
      """
      :param curve_resolution:
          dictionary loss_type -> curve_resolution
      :param insured_losses:
          configuration parameter
      :returns:
         loss_curve_dt
      """
      lc_list = []
      for lt in sorted(curve_resolution):
          C = curve_resolution[lt]
          pairs = [('losses', (F32, C)), ('poes', (F32, C))]
          lc_dt = numpy.dtype(pairs)
          lc_list.append((str(lt), lc_dt))
      if insured_losses:
          for lt in sorted(curve_resolution):
              C = curve_resolution[lt]
              pairs = [('losses', (F32, C)), ('poes', (F32, C))]
              lc_dt = numpy.dtype(pairs)
              lc_list.append((str(lt) + '_ins', lc_dt))
      loss_curve_dt = numpy.dtype(lc_list) if lc_list else None
      return loss_curve_dt