code: def pr_message(
      build_display_name,
      build_url,
      ghprb_pull_id,
      short_commit_hash,
      commit_url,
      msg,
      post_msg="",
  ):
      # align the arguments properly for string formatting
      str_args = (
          build_display_name,
          msg,
          build_url,
          ghprb_pull_id,
          short_commit_hash,
          commit_url,
          str(" " + post_msg + ".") if post_msg else ".",
      )
      return (
          "**[Test build %s %s](%stestReport)** for PR %s at commit [`%s`](%s)%s"
          % str_args
      )
  
file_path: spark/dev/run-tests-jenkins.py
imports: import os
  import sys
  import json
  import functools
  import subprocess
  from urllib.request import urlopen
  from urllib.request import Request
  from urllib.error import HTTPError, URLError
  from sparktestsupport import SPARK_HOME, ERROR_CODES
  from sparktestsupport.shellutils import run_cmd
label_desc: Use image node_id 3 for calling a global function with example usage: pr_message(build_display_name, build_url, ghprb_pull_id, short_commit_hash, commit_url, msg, post_msg) and returns: unknown