docs: def is_kanji(data):
      """\
      Returns if the `data` can be encoded in "kanji" mode.
  
      :param bytes data: The data to check.
      :rtype: bool
      """
      data_len = len(data)
      if not data_len or data_len % 2:
          return False
      if _PY2:
          data = (ord(c) for c in data)
      data_iter = iter(data)
      for i in range(0, data_len, 2):
          code = (next(data_iter) << 8) | next(data_iter)
          if not (0x8140 <= code <= 0x9ffc or 0xe040 <= code <= 0xebbf):
              return False
      return True