code: def transform_file_name(
      file_path: str,
      interested_folders: List[str],
      platform: TestPlatform,
  ) -> str:
      remove_patterns: Set[str] = {
          ".DEFAULT.cpp",
          ".AVX.cpp",
          ".AVX2.cpp",
      }
      for pattern in remove_patterns:
          file_path = file_path.replace(pattern, "")
      # if user has specified interested folder
      if interested_folders:
          for folder in interested_folders:
              if folder in file_path:
                  return file_path[file_path.find(folder) :]
      # remove pytorch base folder path
      if platform == TestPlatform.OSS:
          from package.oss.utils import get_pytorch_folder  # type: ignore[import]
  
          pytorch_foler = get_pytorch_folder()
          assert file_path.startswith(pytorch_foler)
          file_path = file_path[len(pytorch_foler) + 1 :]
      return file_path
  
file_path: pytorch/tools/code_coverage/package/tool/summarize_jsons.py
imports: import json
  import os
  import time
  from typing import Any, Dict, List, Set, Tuple
  from ..util.setting import CompilerType, JSON_FOLDER_BASE_DIR, TestList, TestPlatform, TestStatusType
  from ..util.utils import detect_compiler_type, print_error, print_time, related_to_test_list
  from .parser.coverage_record import CoverageRecord
  from .parser.gcov_coverage_parser import GcovCoverageParser
  from .parser.llvm_coverage_parser import LlvmCoverageParser
  from .print_report import file_oriented_report, html_oriented_report, line_oriented_report
label_desc: Use image node_id 1 for calling a global function with example usage: transform_file_name(file_path, interested_folders, platform) and returns: file_path, file_path