code: def assert_thresholds_range(thresholds):
      if thresholds is not None:
          invalid_thresholds = [
              t for t in thresholds if t is None or t < 0 or t > 1
          ]
          if invalid_thresholds:
              raise ValueError(
                  "Threshold values must be in [0, 1]. "
                  f"Received: {invalid_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 1 for calling a global function with example usage: assert_thresholds_range(thresholds) without return types