code: def main(program, *args):
      p = argparse.ArgumentParser()
      p.add_argument(
          "--skip_repo", action="append", help="Repo to exclude."
      )
      parsed_args = p.parse_args(args)
      skipped_repos = parsed_args.skip_repo or []
      repo_slug = get_repo_slug()
      event_name = get_ci_event_name()
      if repo_slug not in skipped_repos or event_name == "pull_request":
          result = monitor()
      else:
          logger.info(
              "Skipping monitoring %s %s build", repo_slug, event_name
          )
          result = 0
      return result
  
imports: import argparse
  import errno
  import logging
  import os
  import signal
  import subprocess
  import sys
  import time
label_desc: Use image node_id 14 for calling a global function with example usage: main(program) and returns: result