code: def test_import(mocker, dvc):
      cli_args = parse_args(
          [
              "import",
              "repo_url",
              "src",
              "--out",
              "out",
              "--rev",
              "version",
              "--jobs",
              "3",
              "--config",
              "myconfig",
              "--remote",
              "myremote",
              "--remote-config",
              "k1=v1",
              "k2=v2",
          ]
      )
      assert cli_args.func == CmdImport
  
      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=False,
          no_download=False,
          jobs=3,
          config="myconfig",
          remote="myremote",
          remote_config={"k1": "v1", "k2": "v2"},
          force=False,
      )
  
imports: from dvc.cli import parse_args
  from dvc.commands.imp import CmdImport
label_desc: Use image node_id 1 for calling a global function with example usage: test_import(mocker, dvc) without return types