code: def _get_aggregation_weights(
      aggregation_weights: Optional[Dict[str, Any]] = None
  ) -> Dict[str, Any]:
      """This function validates aggregation weights, returning the default weights if none are provided."""
      if aggregation_weights is None:
          aggregation_weights = {
              "overlooked": CUSTOM_SCORE_WEIGHT_OVERLOOKED,
              "swap": CUSTOM_SCORE_WEIGHT_SWAP,
              "badloc": CUSTOM_SCORE_WEIGHT_BADLOC,
          }
      else:
          assert_valid_aggregation_weights(aggregation_weights)
      return aggregation_weights
  
imports: import warnings
  from cleanlab.internal.constants import ALPHA, CUSTOM_SCORE_WEIGHT_BADLOC, CUSTOM_SCORE_WEIGHT_OVERLOOKED, CUSTOM_SCORE_WEIGHT_SWAP, EUC_FACTOR, HIGH_PROBABILITY_THRESHOLD, LOW_PROBABILITY_THRESHOLD, MAX_ALLOWED_BOX_PRUNE, TINY_VALUE, TEMPERATURE, LABEL_OVERLAP_THRESHOLD
  import copy
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, TypeVar
  import numpy
  from cleanlab.internal.object_detection_utils import softmin1d, assert_valid_aggregation_weights, assert_valid_inputs
label_desc: Use image node_id 23 for calling a global function with example usage: _get_aggregation_weights(aggregation_weights) and returns: aggregation_weights