code: def verify_on_hub(repo: str, token: str = None):
      "Verifies that the model is on the hub and returns the model info."
      try:
          return model_info(repo, token=token)
      except GatedRepoError:
          return "gated"
      except RepositoryNotFoundError:
          return "repo"
  
file_path: accelerate/src/accelerate/commands/estimate.py
imports: import argparse
  from huggingface_hub import model_info
  from huggingface_hub.utils import GatedRepoError, RepositoryNotFoundError
  from accelerate import init_empty_weights
  from accelerate.utils import calculate_maximum_sizes, convert_bytes, is_timm_available, is_transformers_available
label_desc: Use image node_id 1 for calling a global function with example usage: verify_on_hub(repo, token) and returns: model_info, str, str