code: def hazard_units(hazard):
      
      units = definition(hazard)['continuous_hazard_units']
      return sorted(units, key=lambda k: k['key'])
docs: Helper to get unit of a hazard.
  
      :param hazard: Hazard type.
      :type hazard: str
  
      :returns: List of hazard units.
      :rtype: list