code: def get_run_on_node_mask():
      
      bitmask = libnuma.numa_get_run_node_mask()
      nodemask = nodemask_t()
      libnuma.copy_bitmask_to_nodemask(bitmask, byref(nodemask))
      libnuma.numa_bitmask_free(bitmask)
  
      return numa_nodemask_to_set(nodemask)
docs: Returns the mask of nodes that the current thread is allowed to run on.
  
      @return: node mask
      @rtype: C{set}