code: def show_keypair(kwargs=None, call=None):
      '''
      Show the details of an SSH keypair
      '''
      if call != 'function':
          log.error(
              'The show_keypair function must be called with -f or --function.'
          )
          return False
  
      if not kwargs:
          kwargs = {}
  
      if 'keyname' not in kwargs:
          log.error('A keyname is required.')
          return False
  
      keypairs = list_keypairs(call='function')
      keyid = keypairs[kwargs['keyname']]['id']
      log.debug('Key ID is %s', keyid)
  
      details = query(method='account/keys', command=keyid)
  
      return detailf show_keypair(kwargs=None, call=None):
      '''
      Show the details of an SSH keypair
      '''
      if call != 'function':
          log.error(
              'The show_keypair function must be called with -f or --function.'
          )
          return False
  
      if not kwargs:
          kwargs = {}
  
      if 'keyname' not in kwargs:
          log.error('A keyname is required.')
          return False
  
      keypairs = list_keypairs(call='function')
      keyid = keypairs[kwargs['keyname']]['id']
      log.debug('Key ID is %s', keyid)
  
      details = query(method='account/keys', command=keyid)
  
      return details
docs: Show the details of an SSH keypair