<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_section(line, section):
 """Update the section being parsed. The parser starts in the `OboSection.meta` section but once it reaches the first ``[Typedef]``, it will enter the `OboSection.typedef` section, and/or when it reaches the first ``[Term]``, it will enter the `OboSection.term` section. """

        if "[Term]" in line:
            section = OboSection.term
        elif "[Typedef]" in line:
            section = OboSection.typedef
        return section