code: def copy_model_from_snapshot(input, output):
      """
      copy a huggingface snapshot to output folder
      """
      for root, dirs, files in os.walk(input):
          for d in dirs:
              if not os.path.isdir(os.path.join(output, d)):
                  os.mkdir(os.path.join(output, d))
          for f in files:
              # target_prefix = os.path.relpath(root, input)
              # shutil.copy2(os.path.abspath(os.path.join(root, f)), os.path.join(output, target_prefix), follow_symlinks=True)
              target_prefix = os.path.relpath(root, input)
              os.symlink(
                  os.path.abspath(os.path.join(root, f)),
                  os.path.join(output, target_prefix, f),
              )
  
imports: import os
  import shutil
  from huggingface_hub.constants import REPO_ID_SEPARATOR
label_desc: Use image node_id 2 for calling a global function with example usage: copy_model_from_snapshot(input, output) without return types