code: def _ensure_is_supported_save_format(suffix: str):
      """Raises ValueError if a file suffix is not a supported save format."""
      if suffix not in _SUPPORTED_SAVE_FORMATS:
          raise ValueError(
              f"Unsupported file format {repr(suffix)}. Supported formats: "
              f'{", ".join(repr(fmt) for fmt in _SUPPORTED_SAVE_FORMATS)}'
          )
  
imports: import dataclasses
  import json
  import os
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  from model_card_toolkit.base_model_card_field import BaseModelCardField
  from model_card_toolkit.proto import model_card_pb2
  from model_card_toolkit.utils import io_utils, json_utils, template_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _ensure_is_supported_save_format(suffix) without return types