code: def is_directory(directory: Path):
      assert directory is not None
      assert directory.exists()
      assert directory.is_dir()
      return True
  
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 1 for calling a global function with example usage: is_directory(directory) and returns: True