code: def parse_init_thresholds(thresholds, default_threshold=0.5):
      if thresholds is not None:
          assert_thresholds_range(to_list(thresholds))
      thresholds = to_list(
          default_threshold if thresholds is None else thresholds
      )
      return thresholds
  
imports: from enum import Enum
  import numpy
  from keras import backend
  from keras import ops
  from keras.losses.loss import squeeze_to_same_rank
  from keras.utils.python_utils import to_list
label_desc: Use image node_id 2 for calling a global function with example usage: parse_init_thresholds(thresholds, default_threshold) and returns: thresholds