{"record":{"id":"9804b0c9d61d8baf","repo":"tensorflow/models","slug":"context-must-be-a-non-empty-list-allowed-values","errorCode":null,"errorMessage":"{context} must be a non-empty list. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.","messagePattern":"(.+?) must be a non-empty list\\. Allowed values: (.+?)\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":494,"sourceCode":") -> tuple[str, ...]:\n  \"\"\"Validates a prompt's augmentation list against the canonical set.\n\n  Args:\n      raw_augmentations: The value read from YAML; expected to be a non-empty\n        sequence of canonical augmentation names.\n      prompt_name: Prompt name used in error messages.\n\n  Returns:\n      The augmentations reordered to match ``CANONICAL_AUGMENTATION_ORDER``,\n      so output filenames are deterministic regardless of YAML ordering.\n\n  Raises:\n      ConfigError: If the sequence is empty, not a list, or contains an\n          unknown or duplicate augmentation name.\n  \"\"\"\n  context = f\"prompts.{prompt_name!r}.augmentations\"\n  if not isinstance(raw_augmentations, (list, tuple)) or not raw_augmentations:\n    raise ConfigError(\n        f\"{context} must be a non-empty list. \"\n        f\"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.\"\n    )\n  seen = set()\n  for augmentation in raw_augmentations:\n    if augmentation not in CANONICAL_AUGMENTATION_ORDER:\n      raise ConfigError(\n          f\"Unknown augmentation {augmentation!r} in {context}. \"\n          f\"Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.\"\n      )\n    if augmentation in seen:\n      raise ConfigError(\n          f\"Duplicate augmentation {augmentation!r} in {context}.\"\n      )\n    seen.add(augmentation)\n  return tuple(\n      augmentation\n      for augmentation in CANONICAL_AUGMENTATION_ORDER","sourceCodeStart":476,"sourceCodeEnd":512,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L476-L512","documentation":"Error \"{context} must be a non-empty list. Allowed values: {list(CANONICAL_AUGMENTATION_ORDER)}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:494 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}