code: def is_unlocked(self):
          
          if self.is_public:
              return True
  
          if not self.is_protected:
              return True
  
          return self._key.unlocked
docs: ``False`` if this is a private key that is protected with a passphrase and has not yet been unlocked, otherwise ``True``