docs: def mip_partitions(mechanism, purview, node_labels=None):
      """Return a generator over all mechanism-purview partitions, based on the
      current configuration.
      """
      func = partition_types[config.PARTITION_TYPE]
      return func(mechanism, purview, node_labels)