code: def get_python_run_only(
      args_run_only: Optional[List[str]],
  ) -> List[str]:
      # if user specifies run-only option
      if args_run_only:
          return args_run_only
  
      # if not specified, use default setting, different for gcc and clang
      if detect_compiler_type() == CompilerType.GCC:
          return ["run_test.py"]
      else:
          # for clang, some tests will result in too large intermediate files that can't be merged by llvm, we need to skip them
          run_only: List[str] = []
          binary_folder = get_oss_binary_folder(TestType.PY)
          g = os.walk(binary_folder)
          for _, _, file_list in g:
              for file_name in file_list:
                  if (
                      file_name in BLOCKED_PYTHON_TESTS
                      or not file_name.endswith(".py")
                  ):
                      continue
                  run_only.append(file_name)
              # only run tests in the first-level folder in test/
              break
          return run_only
  
file_path: pytorch/tools/code_coverage/package/oss/init.py
imports: import argparse
  import os
  from typing import cast, List, Optional, Tuple
  from ..util.setting import CompilerType, JSON_FOLDER_BASE_DIR, LOG_DIR, Option, Test, TestList, TestType
  from ..util.utils import clean_up, create_folder, print_log, raise_no_test_found_exception, remove_file, remove_folder
  from ..util.utils_init import add_arguments_utils, create_folders, get_options
  from .utils import clean_up_gcda, detect_compiler_type, get_llvm_tool_path, get_oss_binary_folder, get_pytorch_folder
label_desc: Use image node_id 8 for calling a global function with example usage: get_python_run_only(args_run_only) and returns: args_run_only, list, run_only