code: def fetch_public_key(repo):
      """Download RSA public key Travis will use for this repo.
  
      Travis API docs: http://docs.travis-ci.com/api/#repository-keys
      """
      keyurl = "https://api.travis-ci.org/repos/{0}/key".format(repo)
      data = json.loads(urlopen(keyurl).read().decode())
      if "key" not in data:
          errmsg = "Could not find public key for repo: {}.\n".format(
              repo
          )
          errmsg += "Have you already added your GitHub repo to Travis?"
          raise ValueError(errmsg)
      return data["key"]
  
file_path: tensorboard_logger/travis_pypi_setup.py
imports: from __future__ import print_function
  import base64
  import json
  import os
  from getpass import getpass
  import yaml
  from cryptography.hazmat.primitives.serialization import load_pem_public_key
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives.asymmetric.padding import PKCS1v15
label_desc: Use image node_id 3 for calling a global function with example usage: fetch_public_key(repo) and returns: data