code: def current_ime(self):
          ''' Get current input method '''
          dumpout = self.adb_shell(['dumpsys', 'input_method'])
          m = _INPUT_METHOD_RE.search(dumpout)
          if m:
              return m.group(1f current_ime(self):
          ''' Get current input method '''
          dumpout = self.adb_shell(['dumpsys', 'input_method'])
          m = _INPUT_METHOD_RE.search(dumpout)
          if m:
              return m.group(1)
docs: Get current input method