code: def format_link(link: str) -> str:
      # Use ANSI escape code to allow link to be clickable
      # https://buildkite.com/docs/pipelines/links-and-images
      # -in-log-output
      if os.environ.get("BUILDKITE_COMMIT") and link:
          return "\033]1339;url='" + link + "'\a\n"
      # Else, no buildkite:
      return link
  
imports: import collections
  import hashlib
  import json
  import os
  import random
  import string
  import subprocess
  import time
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
  import requests
  from ray_release.logger import logger
label_desc: Use image node_id 5 for calling a global function with example usage: format_link(link) and returns: link, unknown