code: def test_check_ignore_details(
      tmp_dir, dvc, file, ret, output, capsys
  ):
      tmp_dir.gen(DvcIgnore.DVCIGNORE_FILE, "f*\n!foo")
      tmp_dir.gen({"dir": {DvcIgnore.DVCIGNORE_FILE: "foobar"}})
  
      assert main(["check-ignore", "-d", file]) == ret
      assert (output, "") == capsys.readouterr()
  
file_path: dvc/tests/func/test_check_ignore.py
imports: import os
  import pytest
  from dvc.cli import main
  from dvc.ignore import DvcIgnore
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_ignore_details(tmp_dir, dvc, file, ret, output, capsys) without return types