code: def test_checkout_no_checksum(tmp_dir, dvc):
      tmp_dir.gen("file", "file content")
      dvc.run(outs=["file"], no_exec=True, cmd="somecmd", name="stage1")
  
      with pytest.raises(CheckoutError):
          dvc.checkout(["stage1"], force=True)
  
      assert not os.path.exists("file")
  
imports: import logging
  import os
  import shutil
  import stat
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.dvcfile import PROJECT_FILE, load_file
  from dvc.exceptions import CheckoutError, CheckoutErrorSuggestGit, NoOutputOrStageError
  from dvc.fs import system
  from dvc.stage.exceptions import StageFileDoesNotExistError
  from dvc.utils import relpath
  from dvc.utils.fs import remove
  from tests.utils import get_gitignore_content
label_desc: Use image node_id 17 for calling a global function with example usage: test_checkout_no_checksum(tmp_dir, dvc) without return types