code: def test_no_commits(tmp_dir):
      from dvc.repo import Repo
      from dvc.scm import Git
  
      git = Git.init(tmp_dir.fs_path)
      assert git.no_commits
  
      assert Repo.init().params.diff() == {}
  
file_path: dvc/tests/func/params/test_diff.py
imports: from os.path import join
  import pytest
  from dvc.utils import relpath
label_desc: Use image node_id 11 for calling a global function with example usage: test_no_commits(tmp_dir) without return types