<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_info_germline(rec):
 """Check if a variant record is germline based on INFO attributes. Works with VarDict's annotation of STATUS. """

    if hasattr(rec, "INFO"):
        status = rec.INFO.get("STATUS", "").lower()
    else:
        status = rec.info.get("STATUS", "").lower()
    return status == "germline" or status.find("loh") >= 0