code: def filler_bucket_assignment(
      costs: np.ndarray, num_buckets: int
  ) -> np.ndarray:
      order = np.argsort(-costs)
      current_buckets_cost = np.zeros(num_buckets)
      assignment = np.zeros_like(costs, dtype=int)
      for element_index in order:
          bucket_with_min_cost = np.argmin(current_buckets_cost)
          assignment[element_index] = bucket_with_min_cost
          current_buckets_cost[bucket_with_min_cost] += costs[
              element_index
          ]
  
      return assignment
  
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: filler_bucket_assignment(costs, num_buckets) and returns: assignment