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: Renders the model card using a Jinja template.
  
  Args:
    template_path: The path to a Jinja template file. If not provided, the
      default HTML template will be used.
    output_path: The path to write the rendered template to. If not provided,
      the rendered template will not be written to a file. If the file already
      exists, it will be overwritten.
    template_variables: A dictionary of variables to pass to the template in
      addition to model card fields.
  
  Returns:
    The rendered model card as a string.
docstr_tok: ["Renders","the","model","card","using","a","Jinja","template",".","Args",":","template_path",":","The","path","to","a","Jinja","template","file",".","If","not","provided",",","the","default","HTML","template","will","be","used",".","output_path",":","The","path","to","write","the","rendered","template","to",".","If","not","provided",",","the","rendered","template","will","not","be","written","to","a","file",".","If","the","file","already","exists",",","it","will","be","overwritten",".","template_variables",":","A","dictionary","of","variables","to","pass","to","the","template","in","addition","to","model","card","fields",".","Returns",":","The","rendered","model","card","as","a","string","."]
code: def render(
      self,
      template_path: Optional[Union[Path, str]] = None,
      output_path: Optional[Union[Path, str]] = None,
      template_variables: Optional[Dict[str, Any]] = None,
  ) -> str:
      """Renders the model card using a Jinja template.
  
      Args:
        template_path: The path to a Jinja template file. If not provided, the
          default HTML template will be used.
        output_path: The path to write the rendered template to. If not provided,
          the rendered template will not be written to a file. If the file already
          exists, it will be overwritten.
        template_variables: A dictionary of variables to pass to the template in
          addition to model card fields.
  
      Returns:
        The rendered model card as a string.
      """
      template_path = (
          template_path or template_utils.default_html_template()
      )
      template_variables = template_variables or {}
      return template_utils.render(
          template_path=template_path,
          output_path=output_path,
          template_variables={
              "model_details": self.model_details,
              "model_parameters": self.model_parameters,
              "quantitative_analysis": self.quantitative_analysis,
              "considerations": self.considerations,
              **template_variables,
          },
      )
  
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 4 for calling the ModelCard obj's underlying member method code with example usage: obj.render(template_path, output_path, template_variables) and returns: template_utils