code: def create_gpu_capa_map(
      match_list, generate_csv=False, filename="compute_capability"
  ):
      """Generates a map between GPU types and corresponding compute capability.
  
      This method is used for retrieving CUDA compute capability from the web only.
  
      Args:
        match_list: List of all CUDA compute capability detected from the webpage.
        generate_csv: Boolean for creating csv file to store results.
        filename: String that is the name of the csv file (without `.csv` ending).
  
      Returns:
        OrderedDict that lists in the incoming order of all CUDA compute capability
        provided as `match_list`.
      """
      gpu_capa = collections.OrderedDict()
      include = False
      gpu = ""
      cnt = 0
      mismatch_cnt = 0
      for match in match_list:
          if "Products" in match:
              if not include:
                  include = True
  
              continue
          elif "www" in match:
              include = False
              break
  
          if include:
              if gpu:
                  if gpu in gpu_capa:
                      gpu_capa[gpu].append(match)
                  else:
                      gpu_capa[gpu] = [match]
  
                  gpu = ""
                  cnt += 1
                  if len(list(gpu_capa.keys())) < cnt:
                      mismatch_cnt += 1
                      cnt = len(list(gpu_capa.keys()))
  
              else:
                  gpu = match
  
      if generate_csv:
          f_name = filename + ".csv"
          write_csv_from_dict(f_name, gpu_capa)
  
      return gpu_capa
  
file_path: tensorflow-upstream/tensorflow/tools/tensorflow_builder/config_detector/data/cuda_compute_capability.py
imports: import collections
  import difflib
  import os
  import re
  import urllib.request
  from absl import app
  from absl import flags
label_desc: Use image node_id 3 for calling a global function with example usage: create_gpu_capa_map(match_list, generate_csv, filename) and returns: gpu_capa