code: def copy_tree(src: str, dst: str):
      if not os.path.exists(dst):
          os.makedirs(dst)
      for item in os.listdir(src):
          src_entry = os.path.join(src, item)
          dst_entry = os.path.join(dst, item)
          if os.path.isdir(src_entry):
              copy_tree(src_entry, dst_entry)
          else:
              copy2(src_entry, dst_entry)
  
file_path: hivemind/hivemind/moe/server/checkpoints.py
imports: import os
  import threading
  from datetime import datetime
  from pathlib import Path
  from shutil import copy2
  from tempfile import TemporaryDirectory
  from typing import Dict
  import torch
  from hivemind.moe.server.module_backend import ModuleBackend
  from hivemind.utils.logging import get_logger
label_desc: Use image node_id 2 for calling a global function with example usage: copy_tree(src, dst) without return types