code: def test_docs_comment(
      target_url, base_url, commit_sha, expected_body
  ):
      """
      Test that a comment with a link to the docs is successfully left on PRs
      """
      pr_data = {
          "commits": {
              "nodes": [
                  {
                      "commit": {
                          "oid": commit_sha,
                          "statusCheckRollup": {
                              "contexts": {
                                  "nodes": [
                                      {
                                          "context": "tvm-ci/pr-head",
                                          "targetUrl": target_url,
                                      }
                                  ]
                              }
                          },
                      }
                  }
              ]
          }
      }
      comment = scripts.github.github_docs_comment.get_doc_url(
          pr=pr_data,
          base_docs_url=base_url,
      )
      assert_in(expected_body, comment)
  
imports: import shutil
  import subprocess
  import json
  import textwrap
  import sys
  import logging
  from pathlib import Path
  import pytest
  import tvm.testing
  from .test_utils import REPO_ROOT, GITHUB_SCRIPT_ROOT, JENKINS_SCRIPT_ROOT, TempGit, run_script
  import scripts.github
  import scripts.jenkins
  from scripts.github.update_branch import EXPECTED_CI_JOBS
label_desc: Use image node_id 3 for calling a global function with example usage: test_docs_comment(target_url, base_url, commit_sha, expected_body) without return types