code: def assert_valid_aggregation_weights(
      aggregation_weights: Dict[str, Any]
  ) -> None:
      """assert aggregation weights are in the proper format"""
      weights = np.array(list(aggregation_weights.values()))
      if (not np.isclose(np.sum(weights), 1.0)) or (
          np.min(weights) < 0.0
      ):
          raise ValueError(
              f"""Aggregation weights should be non-negative and must sum to 1.0
                  """
          )
  
imports: from typing import Any, Dict, List, Optional
  import numpy
  from cleanlab.internal.numerics import softmax
label_desc: Use image node_id 3 for calling a global function with example usage: assert_valid_aggregation_weights(aggregation_weights) without return types