code: def test_completion(caplog, capsys, shell):
      with caplog.at_level(logging.INFO):
          assert main(["completion", "-s", shell]) == 0
      assert not caplog.text
  
      out, err = capsys.readouterr()
      assert not err
      assert out
  
imports: import logging
  import pytest
  from dvc.cli import main
  from dvc.commands.completion import SUPPORTED_SHELLS
label_desc: Use image node_id 1 for calling a global function with example usage: test_completion(caplog, capsys, shell) without return types