code: def unwrap(self):
          
  
          if self.algorithm == 'rsa':
              return self['private_key'].parsed
  
          if self.algorithm == 'dsa':
              params = self['private_key_algorithm']['parameters']
              return DSAPrivateKey({
                  'version': 0,
                  'p': params['p'],
                  'q': params['q'],
                  'g': params['g'],
                  'public_key': self.public_key,
                  'private_key': self['private_key'].parsed,
              })
  
          if self.algorithm == 'ec':
              output = self['private_key'].parsed
              output['parameters'] = self['private_key_algorithm']['parameters']
              output['public_key'] = self.public_key
              return output
docs: Unwraps the private key into an RSAPrivateKey, DSAPrivateKey or
          ECPrivateKey object
  
          :return:
              An RSAPrivateKey, DSAPrivateKey or ECPrivateKey object