code: def create_repo(
      project_name, autotrain_user, huggingface_token, model_path
  ):
      repo_name = f"autotrain-{project_name}"
      repo_url = HfApi().create_repo(
          repo_id=f"{autotrain_user}/{repo_name}",
          token=huggingface_token,
          exist_ok=False,
          private=True,
      )
      if len(repo_url.strip()) == 0:
          repo_url = (
              f"https://huggingface.co/{autotrain_user}/{repo_name}"
          )
  
      logger.info(f"Created repo: {repo_url}")
  
      model_repo = clone_hf_repo(
          local_dir=model_path,
          repo_url=repo_url,
          token=huggingface_token,
      )
      model_repo.lfs_track(patterns=LFS_PATTERNS)
      return model_repo
  
imports: import glob
  import json
  import os
  import re
  import shutil
  import subprocess
  import traceback
  from typing import Dict, Optional
  import requests
  from huggingface_hub import HfApi, HfFolder
  from huggingface_hub.repository import Repository
  from transformers import AutoConfig
  from autotrain import config, logger
  from autotrain.tasks import TASKS
label_desc: Use image node_id 10 for calling a global function with example usage: create_repo(project_name, autotrain_user, huggingface_token, model_path) and returns: model_repo