code: def get_checkpoint(model_name, token) -> Tuple[str, Mapping, str]:
      model_path = snapshot_download(repo_id=model_name, token=token)
      config_path = f"{model_path}/torch_config.json"
      state = torch.load(f"{model_path}/torch_weight.pt")
  
      return config_path, state, f"{model_path}/tokenizer.json"
  
file_path: uform/src/uform/__init__.py
imports: from json import load
  from typing import Mapping, Optional, Tuple
  import torch
  from huggingface_hub import snapshot_download
  from uform.models import *
label_desc: Use image node_id 1 for calling a global function with example usage: get_checkpoint(model_name, token) and returns: config_path,  state,  model_path, str