code: def _assert_progress_repr(
      class_label_name: str,
      progressible_labels: Optional[Collection[int]],
      new_label: Dict[str, Any],
  ) -> None:
      if progressible_labels is None:
          assert "progress" not in new_label
      else:
          assert "progress" in new_label
          if new_label[class_label_name] in progressible_labels:
              # We shouldn't ever return a 'progressible label' while not returning the
              # `"progress"` field.
              assert 0.0 <= new_label["progress"] <= 1.0
          else:
              # We shouldn't ever return the `"progress"` field while not returning a
              # 'progressible label'.
              assert new_label["progress"] == -1.0
  
file_path: ml-cvnets/data/datasets/utils/video.py
imports: import functools
  from typing import Any, Collection, Dict, List, Optional, Tuple
  import numpy
  from utils import logger
label_desc: Use image node_id 6 for calling a global function with example usage: _assert_progress_repr(class_label_name, progressible_labels, new_label) without return types