code: def get_huggingface_token() -> Optional[str]:
      if token := os.environ.get("HF_HUB_ACCESS_TOKEN"):
          return token
  
      from huggingface_hub import HfFolder
  
      if token := HfFolder.get_token():
          return token
  
      raise ValueError(
          "No token found. Please set HF_HUB_ACCESS_TOKEN environment variable."
      )
  
file_path: argilla/scripts/end2end_examples.py
imports: import os
  import tempfile
  from dataclasses import dataclass, field
  from pathlib import Path
  from typing import Dict, Optional
  import papermill
  from argilla._constants import DEFAULT_API_KEY
label_desc: Use image node_id 1 for calling a global function with example usage: get_huggingface_token() and returns: token, token