def METHOD_NAME(self) -> None:
    """Prepare the session after the connection has been established."""
    self.ansi_escape_codes = True
    self._test_channel_read(pattern=self.prompt_pattern)
    self.set_base_prompt()