code: def NIR_calc(P, POP):
      
      try:
          max_P = max(list(P.values()))
          length = POP
          return max_P / length
      except Exception:
          return "None"
docs: Calculate NIR (No information rate).
  
      :param P: condition positive
      :type P : dict
      :param POP: population
      :type POP : int
      :return: NIR as float