<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)