<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_lines(self, key):
 """Return header lines having the given ``key`` as their type"""

        if key in self._indices:
            return self._indices[key].values()
        else:
            return []