docs: def numa_nodemask_to_set(mask):
      """
      Convert NUMA nodemask to Python set.
      """
      result = set()
  
      for i in range(0, get_max_node() + 1):
          if __nodemask_isset(mask, i):
              result.add(i)
  
      return result