code: def get_thread_siblings_list():
      """
      Returns a list of 2-element integer tuples representing pairs of
      hyperthreading cores.
      """
      path = (
          "/sys/devices/system/cpu/cpu*/topology/thread_siblings_list"
      )
      thread_siblings_list = []
      pattern = re.compile(r"(\d+)\D(\d+)")
      for fname in pathlib.Path(path[0]).glob(path[1:]):
          with open(fname) as f:
              content = f.read().strip()
              res = pattern.findall(content)
              if res:
                  pair = tuple(sorted(map(int, res[0])))
                  thread_siblings_list.append(pair)
      thread_siblings_list = list(set(thread_siblings_list))
      return thread_siblings_list
  
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 1 for calling a global function with example usage: get_thread_siblings_list() and returns: thread_siblings_list