code: def test_github_tag_teams(tmpdir_factory, source_type, data, check):
      """
      Check that individuals are tagged from team headers
      """
      tag_script = GITHUB_SCRIPT_ROOT / "github_tag_teams.py"
  
      git = TempGit(tmpdir_factory.mktemp("tmp_git_dir"))
  
      issue_body = """
      some text
      [temporary] opt-in: @person5
  
      - something: @person1 @person2
      - something3: @person1 @person2 @SOME1-ONE-
      - something else @person1 @person2
      - something else2: @person1 @person2
      - something-else @person1 @person2
      """
      comment1 = """
      another thing: @person3
      another-thing @person3
      """
      comment2 = """
      something @person4
      @person5
      """
      teams = {
          "data": {
              "repository": {
                  "issue": {
                      "body": issue_body,
                      "comments": {
                          "nodes": [
                              {"body": comment1},
                              {"body": comment2},
                          ]
                      },
                  }
              }
          }
      }
      env = {
          source_type: json.dumps(data),
      }
      proc = run_script(
          [
              tag_script,
              "--dry-run",
              "--team-issue-json",
              json.dumps(teams),
          ],
          stderr=subprocess.STDOUT,
          cwd=git.cwd,
          env=env,
      )
  
      assert_in(check, proc.stdout)
  
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 13 for calling a global function with example usage: test_github_tag_teams(tmpdir_factory, source_type, data, check) without return types