code: def init(
      new_interfaces_git="https://github.com/speechbrain/speechbrain",
      new_interfaces_branch="hf-interface-testing",
      new_interfaces_local_dir="tests/tmp/hf_interfaces",
  ):
      """Initialises a PR branch to: https://github.com/speechbrain/speechbrain/tree/hf-interface-testing
  
      Skip if the path as of `new_interfaces_local_dir` exists (e.g. by DIY init instead of via this script).
  
      Parameters
      ----------
      new_interfaces_git: str
          Your git repo (or default: `https://github.com/speechbrain/speechbrain`);
          can be specified in tests/utils/overrides.yaml
      new_interfaces_branch: str
          Default is `hf-interface-testing` (a git branch); can be specified in tests/utils/overrides.yaml
      new_interfaces_local_dir: str
          Default is `tests/tmp/hf_interfaces` (a local path); can be specified in tests/utils/overrides.yaml
  
      Returns
      -------
      str
          Local path of `updates_pretrained_models` where the update HF yaml/interface files can be found.
      """
      # set up git etc
      if not os.path.exists(new_interfaces_local_dir):
          # note: not checking for anything, whether it exists or not - or if there is a previous one already
          # clone repo with PR on updates_pretrained_models into local folder
          cmd_out_clone = subprocess.run(
              [
                  "git",
                  "clone",
                  new_interfaces_git,
                  new_interfaces_local_dir,
              ],
              capture_output=True,
          )
          print(f"\tgit clone log: {cmd_out_clone}")
  
          # cd into that local folder, switch branch to the one containing updates_pretrained_models & cd back
          cwd = os.getcwd()
          os.chdir(new_interfaces_local_dir)
          cmd_out_co = subprocess.run(
              ["git", "checkout", new_interfaces_branch],
              capture_output=True,
          )
          print(f"\tgit checkout log: {cmd_out_co}")
          os.chdir(cwd)
  
      # return the valid local path with updates_pretrained_models
      updates_dir = (
          f"{new_interfaces_local_dir}/updates_pretrained_models"
      )
      return updates_dir
  
imports: import os
  import sys
  from tqdm import tqdm
  import yaml
  import torch
  import importlib
  import subprocess
  import speechbrain
  from glob import glob
  from copy import deepcopy
  from torch.utils.data import DataLoader
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.distributed import run_on_main
  from speechbrain.utils.train_logger import FileTrainLogger
  from speechbrain.inference.interfaces import foreign_class
  from speechbrain.dataio.dataloader import LoopedLoader, make_dataloader
label_desc: Use image node_id 1 for calling a global function with example usage: init(new_interfaces_git, new_interfaces_branch, new_interfaces_local_dir) and returns: updates_dir