code: def suffix(path: Union[str, Path]) -> str:
      """Returns the suffix (extension) of a path."""
      return os.path.splitext(path)[1]
  
file_path: model-card-toolkit/model_card_toolkit/utils/io_utils.py
imports: import os
  from pathlib import Path
  from typing import Union
  from google.protobuf.message import Message
label_desc: Use image node_id 1 for calling a global function with example usage: suffix(path) and returns: os