code: def test_check_ignore_dir(tmp_dir, dvc, path, ret):
      tmp_dir.gen(DvcIgnore.DVCIGNORE_FILE, "dir/")
      tmp_dir.gen(path)
  
      assert main(["check-ignore", "-q", "dir"]) == ret
  
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 5 for calling a global function with example usage: test_check_ignore_dir(tmp_dir, dvc, path, ret) without return types