We could change the docstring to  "Given an Output produced by a risk calculation it returns the corresponding hazard metadata" which is simpler to parse. Also, I would return a namedtuple, since it is customary in Python to return namedtuples for records of informations.