code: def test_post_checkout(self, tmp_dir, scm, dvc):
      tmp_dir.dvc_gen({"file": "file content"}, commit="add")
      os.unlink("file")
      dvc.install()
  
      scm.gitpython.git.checkout("-b", "new_branch")
  
      assert os.path.isfile("file")
  
file_path: dvc/tests/func/test_install.py
imports: import os
  import pathlib
  import sys
  import pytest
  from git import GitCommandError
  from dvc.exceptions import DvcException
  from dvc_data.hashfile.hash import file_md5
  from tests.func.parsing.test_errors import escape_ansi
label_desc: Use image node_id 6 for calling the TestInstall obj's underlying member method code with example usage: obj.test_post_checkout(tmp_dir, scm, dvc) without return types