code: def push_model_card_example(overwrite: bool) -> None:
      """Generate an empty model card from template for documentation purposes.
  
      Do not push if content has not changed. Script is triggered in CI on main branch.
      Card is pushed to https://huggingface.co/templates/model-card-example.
      """
      # Not using ModelCard directly to preserve comments in metadata part
      template = jinja2.Template(
          ModelCard.default_template_path.read_text()
      )
      content = template.render(
          card_data="{}",
          model_summary=(
              "This modelcard aims to be a base template for new models. "
              "It has been generated using [this raw template]"
              "(https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1)."
          ),
      )
      if not overwrite:
          existing_content = Path(
              hf_hub_download(
                  MODEL_CARD_REPO_ID, REPOCARD_NAME, repo_type="model"
              )
          ).read_text()
          if content == existing_content:
              print("Model Card not pushed: did not change.")
              return
      print(f"Pushing empty Model Card to Hub: {MODEL_CARD_REPO_ID}")
      upload_file(
          path_or_fileobj=content.encode(),
          path_in_repo=REPOCARD_NAME,
          repo_id=MODEL_CARD_REPO_ID,
          repo_type="model",
      )
  
file_path: huggingface_hub/utils/push_repocard_examples.py
imports: import argparse
  from pathlib import Path
  import jinja2
  from huggingface_hub import DatasetCard, ModelCard, hf_hub_download, upload_file, whoami
  from huggingface_hub.constants import REPOCARD_NAME
label_desc: Use image node_id 2 for calling a global function with example usage: push_model_card_example(overwrite) without return types