code: def get_latest_publish_build_info(repo, branch):
      url = (
          r"https://circleci.com/api/v1.1/project/github/"
          r"{repo}/tree/{branch}?limit=100&filter=completed"
      ).format(repo=repo, branch=branch)
  
      branch_jobs = request_json(url)
  
      # Get most recent successful publish build for branch
      builds = [
          j
          for j in branch_jobs
          if j.get("workflows", {}).get("job_name", None)
          == "publish-dist"
          and j.get("status", None) == "success"
      ]
      build = builds[0]
  
      # Extract build info
      return {
          p: build[p]
          for p in ["vcs_revision", "build_num", "committer_date"]
      }
  
imports: import os
  import sys
  import platform
  import json
  from setuptools import setup, Command
  from setuptools.command.egg_info import egg_info
  from subprocess import check_call
  from distutils import log
  import versioneer
label_desc: Use image node_id 10 for calling a global function with example usage: get_latest_publish_build_info(repo, branch) and returns: unknown