code: def test_import_no_exec(mocker, dvc):
      cli_args = parse_args(
          [
              "import",
              "repo_url",
              "src",
              "--out",
              "out",
              "--rev",
              "version",
              "--no-exec",
          ]
      )
  
      cmd = cli_args.func(cli_args)
      m = mocker.patch.object(cmd.repo, "imp", autospec=True)
  
      assert cmd.run() == 0
  
      m.assert_called_once_with(
          "repo_url",
          path="src",
          out="out",
          rev="version",
          no_exec=True,
          no_download=False,
          jobs=None,
          config=None,
          remote=None,
          remote_config=None,
          force=False,
      )
  
imports: from dvc.cli import parse_args
  from dvc.commands.imp import CmdImport
label_desc: Use image node_id 2 for calling a global function with example usage: test_import_no_exec(mocker, dvc) without return types