code: def test_tvmc_tune_file_check(capsys, invalid_input):
      tune_cmd = f"tvmc tune --target 'llvm' --output output.json {invalid_input}"
      run_arg = tune_cmd.split(" ")[1:]
  
      _main(run_arg)
  
      captured = capsys.readouterr()
      expected_err = (
          f"Error: Input file '{invalid_input}' doesn't exist, "
          "is a broken symbolic link, or a directory.\n"
      )
      on_assert_error = (
          f"'tvmc tune' failed to check invalid FILE: {invalid_input}"
      )
      assert captured.err == expected_err, on_assert_error
  
imports: import os
  import platform
  import pytest
  import shutil
  import logging
  import sys
  from pytest_lazyfixture import lazy_fixture
  from unittest import mock
  import tvm
  from tvm.driver.tvmc.main import _main
  from tvm.driver.tvmc.model import TVMCException
  from tvm.driver.tvmc import compiler
  from unittest.mock import MagicMock
label_desc: Use image node_id 7 for calling a global function with example usage: test_tvmc_tune_file_check(capsys, invalid_input) without return types