<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_sentence(self, offset: int) -> BioCSentence or None: """ Gets sentence with specified offset Args: offset: sentence offset Return: the sentence with specified offset """

        for sentence in self.sentences:
            if sentence.offset == offset:
                return sentence
        return None