code: def test_add(mocker, dvc):
      cli_args = parse_args(
          [
              "add",
              "--no-commit",
              "--glob",
              "data",
          ]
      )
      assert cli_args.func == CmdAdd
  
      cmd = cli_args.func(cli_args)
      m = mocker.patch.object(cmd.repo, "add", autospec=True)
  
      assert cmd.run() == 0
  
      m.assert_called_once_with(
          ["data"],
          no_commit=True,
          glob=True,
          out=None,
          remote=None,
          to_remote=False,
          remote_jobs=None,
          force=False,
      )
  
imports: import logging
  from dvc.cli import parse_args
  from dvc.commands.add import CmdAdd
label_desc: Use image node_id 1 for calling a global function with example usage: test_add(mocker, dvc) without return types