<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isKeyWriteLocked(self, keyID=None):
 """ 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 """

        kcfg = self.getKeyConfig(keyID)
        return 'writeLock' in kcfg and kcfg['writeLock'] is True