code: def _show_results(self, result):
      if not result.match and not self.args.non_matching:
          return
  
      if self.args.details:
          patterns = result.patterns
          if not self.args.all:
              patterns = patterns[-1:]
  
          for pattern in patterns:
              ui.write(pattern, result.file, sep="\t")
      else:
          ui.write(result.file)
  
file_path: dvc/dvc/commands/check_ignore.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.ui import ui
label_desc: Use image node_id 2 for calling the CmdCheckIgnore obj's underlying member method code with example usage: obj._show_results(result) without return types