code: def build_comment(
      common_commit_sha,
      common_main_build,
      skipped_list,
      additional_skipped_list,
      pr_number,
      build_number,
      commit_sha,
      jenkins_prefix,
  ):
      if common_main_build["state"] != "success":
          return f"Unable to run tests bot because main failed to pass CI at {common_commit_sha}."
  
      text = build_diff_comment_with_main(
          common_commit_sha, skipped_list, commit_sha
      )
  
      if len(additional_skipped_list) != 0:
          text += "\n"
          text += (
              f"Additional tests that were skipped in the CI build and present in the [`required_tests_to_run`]"
              f"(https://github.com/apache/tvm/blob/main/ci/scripts/github/required_tests_to_run.json) file:"
              f"\n```\n"
          )
          for skip in additional_skipped_list:
              text += skip + "\n"
          text += f"```\n"
  
      text += (
          f"A detailed report of ran tests is [here](https://{jenkins_prefix}/job/tvm/job/PR-{str(pr_number)}"
          f"/{str(build_number)}/testReport/)."
      )
      return text
  
file_path: tvm/ci/scripts/github/github_skipped_tests_comment.py
imports: import inspect
  import json
  import os
  import logging
  import subprocess
  from xml.etree import ElementTree
  from pathlib import Path
  from typing import Dict, Any, Optional
label_desc: Use image node_id 10 for calling a global function with example usage: build_comment(common_commit_sha, common_main_build, skipped_list, additional_skipped_list, pr_number, build_number, commit_sha, jenkins_prefix) and returns: text, str, common_commit_sha, str