code: def test_gen_dvcignore(tmp_dir):
      DvcRepo.init(no_scm=True)
      text = (
          "# Add patterns of files dvc should ignore, which could improve\n"
          "# the performance. Learn more at\n"
          "# https://dvc.org/doc/user-guide/dvcignore\n"
      )
      assert text == (tmp_dir / ".dvcignore").read_text()
  
file_path: dvc/tests/func/test_init.py
imports: import logging
  import os
  import pytest
  from dvc.cli import main
  from dvc.config import Config
  from dvc.exceptions import InitError
  from dvc.repo import Repo
label_desc: Use image node_id 11 for calling a global function with example usage: test_gen_dvcignore(tmp_dir) without return types