code: def get_appium_sessionId(self):
          
          self._info("Appium Session ID: " + self._current_application().session_id)
          return self._current_application().session_id
docs: Returns the current session ID as a reference