code: def create_key(kwargs=None, call=None):
      '''
      Upload a public key
      '''
      if call != 'function':
          log.error(
              'The create_key function must be called with -f or --function.'
          )
          return False
  
      try:
          result = query(
              method='account',
              command='keys',
              args={'name': kwargs['name'],
                    'public_key': kwargs['public_key']},
              http_method='post'
          )
      except KeyError:
          log.info('`name` and `public_key` arguments must be specified')
          return False
  
      return resulf create_key(kwargs=None, call=None):
      '''
      Upload a public key
      '''
      if call != 'function':
          log.error(
              'The create_key function must be called with -f or --function.'
          )
          return False
  
      try:
          result = query(
              method='account',
              command='keys',
              args={'name': kwargs['name'],
                    'public_key': kwargs['public_key']},
              http_method='post'
          )
      except KeyError:
          log.info('`name` and `public_key` arguments must be specified')
          return False
  
      return result
docs: Upload a public key