code: def get_cgroup_cpuset():
      with open("/sys/fs/cgroup/cpuset/cpuset.cpus", "r") as f:
          content = f.readlines()
      cpu_set = []
      values = content[0].strip().split(",")
      for value in values:
          if "-" in value:
              # Parse the value like "2-4"
              start, end = value.split("-")
              cpu_set.extend(
                  [i for i in range(int(start), int(end) + 1)]
              )
          else:
              cpu_set.append(int(value))
      return cpu_set
  
imports: import subprocess
  import re
  from typing import Optional
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 1 for calling a global function with example usage: get_cgroup_cpuset() and returns: cpu_set