code: def test_check_ignore_stdin_mode(
      tmp_dir, dvc, file, ret, output, capsys, mocker
  ):
      tmp_dir.gen(DvcIgnore.DVCIGNORE_FILE, "ignored")
      mocker.patch("builtins.input", side_effect=[file, ""])
  
      assert main(["check-ignore", "--stdin"]) == ret
      out, _ = capsys.readouterr()
      assert (file in out) is output
  
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 11 for calling a global function with example usage: test_check_ignore_stdin_mode(tmp_dir, dvc, file, ret, output, capsys, mocker) without return types