def METHOD_NAME(
        self, sender_id: Text, fetch_events_from_all_sessions: bool
) -> Optional[List[Dict[Text, Any]]]:
    events = self.get_stored_events(sender_id, fetch_events_from_all_sessions)
    # look for conversations which have used an `int` sender_id in the past
    # and update them.
    if not events and sender_id.isdigit():
        self.conversations.update_many(
            {"sender_id": int(sender_id)},
            {"$set": {"sender_id": str(sender_id)}}
        )
    if not events:
        return None
    return events