code: def test_determine_docker_images(tmpdir_factory, images, expected):
      """Test script to decide whether to use tlcpack or tlcpackstaging for images"""
      script = JENKINS_SCRIPT_ROOT / "determine_docker_images.py"
  
      git_dir = tmpdir_factory.mktemp("tmp_git_dir")
  
      docker_data = {
          "repositories/tlcpack/ci-arm/tags/abc-abc-123": {},
          "repositories/tlcpack/ci-lint/tags/abc-abc-234": {},
      }
  
      images_data = {
          "ci_arm": "tlcpack/ci-arm:abc-abc-123",
          "ci_lint": "tlcpack/ci-lint:abc-abc-234",
          "ci_arm2": "tlcpack/ci-arm2:abc-abc-123",
      }
  
      run_script(
          [
              script,
              "--testing-docker-data",
              json.dumps(docker_data),
              "--testing-images-data",
              json.dumps(images_data),
              "--base-dir",
              git_dir,
          ]
          + images,
          cwd=git_dir,
      )
  
      for expected_filename, expected_image in expected.items():
          with open(Path(git_dir) / expected_filename) as f:
              actual_image = f.read()
  
          assert actual_image == expected_image
  
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 15 for calling a global function with example usage: test_determine_docker_images(tmpdir_factory, images, expected) without return types