def tsh_diagnosis(float_list):
    """Diagnosis from data

        From the TSH results from each patient, assign one of the following
        diagnoses to the patient "hyperthyroidism", hypothyroidism",
        "normal thyroid function".

        Args:
            float_list (list): list of floats of the tsh data.

        Returns:
            str: "hyperthyroidism" or hypothyroidism" or
                "normal thyroid function"
    """
    for i in float_list:
        if i < 1:
            return "hyperthyroidism"
            break
        elif i > 4:
            return "hypothyroidism"
            break
    return "normal thyroid function"