code: def create_checkpoint(
      checkpoint_dir: pathlib.Path,
      expected_files: Optional[Dict] = None,
  ) -> None:
      """Create a new checkpoint."""
      if expected_files is None:
          expected_files = EXPECTED_FILES
      for file, content in expected_files.items():
          path = checkpoint_dir.joinpath(file)
          path.parent.mkdir(parents=True, exist_ok=True)
          if content is None:
              path.mkdir(exist_ok=True)
              continue
          with path.open("w") as f:
              f.write(content)
  
imports: import os
  import pathlib
  import shutil
  import time
  import uuid
  from typing import Any, Callable, Dict, List, Optional, Tuple
  from unittest import mock
  import pytest
  import requests
  from determined import core, errors
  from determined.common import storage
  from determined.tensorboard.fetchers import base
  from tests import parallel
label_desc: Use image node_id 1 for calling a global function with example usage: create_checkpoint(checkpoint_dir, expected_files) without return types