code: def check_config_mode(self, check_string="config", pattern=""):
          
          if not pattern:
              pattern = re.escape(self.base_prompt)
          return super(CiscoWlcSSH, self).check_config_mode(check_string, pattern)
docs: Checks if the device is in configuration mode or not.