class_docstr: Fields used to generate the Model Card.
  
  Attributes:
    model_details: Descriptive metadata for the model.
    model_parameters: Technical metadata for the model.
    quantitative_analysis: Quantitative analysis of model performance.
    considerations: Any considerations related to model construction, training,
      and application.
docstr: Saves the model card to a file.
  
  Args:
    path: The path where to save the model card. Supported formats are '.json'
      and '.proto'.
    overwrite: Whether to overwrite the file if it already exists.
      Defaults to False.
  
  Raises:
    ValueError: If the file suffix is not a supported save format or if the
      file already exists and `overwrite` is False.
docstr_tok: ["Saves","the","model","card","to","a","file",".","Args",":","path",":","The","path","where","to","save","the","model","card",".","Supported","formats","are","'.json'","and","'.proto","'",".","overwrite",":","Whether","to","overwrite","the","file","if","it","already","exists",".","Defaults","to","False",".","Raises",":","ValueError",":","If","the","file","suffix","is","not","a","supported","save","format","or","if","the","file","already","exists","and","`","overwrite","`","is","False","."]
code: def save(
      self, path: Union[Path, str], overwrite: Optional[bool] = False
  ):
      """Saves the model card to a file.
  
      Args:
        path: The path where to save the model card. Supported formats are '.json'
          and '.proto'.
        overwrite: Whether to overwrite the file if it already exists.
          Defaults to False.
  
      Raises:
        ValueError: If the file suffix is not a supported save format or if the
          file already exists and `overwrite` is False.
      """
      suffix = io_utils.suffix(path)
      _ensure_is_supported_save_format(suffix)
  
      if not overwrite and os.path.exists(path):
          raise ValueError(
              f"File {path} already exists. Set `overwrite=True` to overwrite."
          )
  
      if suffix == ".proto":
          io_utils.write_proto_file(path, self.to_proto())
      elif suffix == ".json":
          io_utils.write_file(path, self.to_json())
  
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 5 for calling the ModelCard obj's underlying member method code with example usage: obj.save(path, overwrite) without return types