code: def labels(indices, node_labels=None):
      
      if node_labels is None:
          return tuple(map(str, indices))
      return node_labels.indices2labels(indices)
docs: Get the labels for a tuple of mechanism indices.