code: def default_partition_split_func(w, n):
      r"""
      Default function for partitioning weights in :math:`w` into :math:`n` partitions.
  
      Weights in :math:`w` are sorted and partitioned evenly.
  
      """
      sorted_indexes = np.argsort(w)
      n = min(n, len(sorted_indexes))
      return np.array_split(sorted_indexes, n)
  
imports: import numpy
  import pyomo.environ
  from pyomo.contrib.fbbt.fbbt import compute_bounds_on_expr
label_desc: Use image node_id 1 for calling a global function with example usage: default_partition_split_func(w, n) and returns: np