<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hazard_units(hazard):
 """Helper to get unit of a hazard. :param hazard: Hazard type. :type hazard: str :returns: List of hazard units. :rtype: list """

    units = definition(hazard)['continuous_hazard_units']
    return sorted(units, key=lambda k: k['key'])