<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_section_by_offset(self, offset):
 """Get the section containing the given file offset."""


        sections = [s for s in self.sections if s.contains_offset(offset)]

        if sections:
            return sections[0]

        return None