code: def repro_command(
      build_type: str, failed_node_ids: List[str]
  ) -> Optional[str]:
      """
      Parse available JUnit XML files and output a command that users can run to
      reproduce CI failures locally
      """
      test_args = [f"--tests {node_id}" for node_id in failed_node_ids]
      test_args_str = " ".join(test_args)
      return f"python3 tests/scripts/ci.py {build_type} {test_args_str}"
  
file_path: tvm/ci/scripts/jenkins/pytest_wrapper.py
imports: import argparse
  import textwrap
  import junitparser
  from pathlib import Path
  from typing import List, Optional
  import os
  import urllib.parse
  import logging
  from cmd_utils import init_log
label_desc: Use image node_id 4 for calling a global function with example usage: repro_command(build_type, failed_node_ids) and returns: str, build_type, str, test_args_str