code: def update_coverage(
      coverage_records: List[CoverageRecord],
      interested_folders: List[str],
      platform: TestPlatform,
  ) -> None:
      for item in coverage_records:
          # extract information for the record
          record = item.to_dict()
          file_path = record["filepath"]
          if not is_intrested_file(
              file_path, interested_folders, platform
          ):
              continue
          covered_range = record["covered_lines"]
          uncovered_range = record["uncovered_lines"]
          # transform file name: remote/13223/caffe2/aten -> caffe2/aten
          file_path = transform_file_name(
              file_path, interested_folders, platform
          )
  
          # if file not exists, add it into dictionary
          if file_path not in covered_lines:
              covered_lines[file_path] = set()
          if file_path not in uncovered_lines:
              uncovered_lines[file_path] = set()
          # update this file's covered and uncovered lines
          if covered_range is not None:
              covered_lines[file_path].update(covered_range)
          if uncovered_range is not None:
              uncovered_lines[file_path].update(uncovered_range)
  
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 6 for calling a global function with example usage: update_coverage(coverage_records, interested_folders, platform) without return types