code: def session_preparation(self):
          
          self._test_channel_read()
          self.set_base_prompt()
          if self.secret:
              self.enable()
          else:
              self.asa_login()
          self.disable_paging(command="terminal pager 0")
          if self.allow_auto_change:
              try:
                  self.send_config_set("terminal width 511")
              except ValueError:
                  # Don't fail for the terminal width
                  pass
  
          # Clear the read buffer
          time.sleep(0.3 * self.global_delay_factor)
          self.clear_buffer()
docs: Prepare the session after the connection has been established.