code: def build_thread_siblings_dict(siblings_list):
      siblings_dict = {}
      for siblings_tuple in siblings_list:
          for core in siblings_tuple:
              siblings_dict[core] = siblings_tuple
  
      return siblings_dict
  
imports: import collections
  import itertools
  import os
  import pathlib
  import re
  import pynvml
  from typing import Union
  from enum import Enum, auto
label_desc: Use image node_id 2 for calling a global function with example usage: build_thread_siblings_dict(siblings_list) and returns: siblings_dict