code: def check_can_push():
      """Check the user can push to the `templates/` folder with its credentials."""
      try:
          me = whoami()
      except EnvironmentError:
          print("You must be logged in to push repo card examples.")
  
      if all(org["name"] != ORG_NAME for org in me.get("orgs", [])):
          print(
              f"❌ You must have access to organization '{ORG_NAME}' to push repo card examples."
          )
          exit(1)
  
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 1 for calling a global function with example usage: check_can_push() without return types