code: def get_distance(node1, node2):
      
      if node1 < 0 or node1 > get_max_node():
          raise ValueError(node1)
      if node2 < 0 or node2 > get_max_node():
          raise ValueError(node2)
  
      return libnuma.numa_distance(node1, node2)
docs: Reports the distance in the machine topology between two nodes.
  
      The factors are a multiple of 10. It returns 0 when the distance cannot be determined. A node  has
      distance 10 to itself.  Reporting the distance requires a Linux kernel version of 2.6.10 or newer.
  
      @param node1: node idx
      @type node1: C{int}
      @param node2: node idx
      @type node2: C{int}
      @rtype: C{int}