code: def isKeyWriteLocked(self, keyID=None):
          
          kcfg = self.getKeyConfig(keyID)
          return 'writeLock' in kcfg and kcfg['writeLock'] is True
docs: Determine if a key config is write locked.
  
          :param str keyID: optional keyID to retrieve, or current if not passed
          :return: True if the given (or current) keyID is writeLocked