code: def test_add(dvc):
      target1 = "1"
      target2 = "2"
  
      args = parse_args(["add", target1, target2])
  
      cmd = args.func(args)
      assert isinstance(cmd, CmdAdd)
      assert args.targets == [target1, target2]
  
      cmd.repo.close()
  
imports: import os
  import pytest
  from dvc.cli import DvcParserError, parse_args
  from dvc.cli.command import CmdBase
  from dvc.commands.add import CmdAdd
  from dvc.commands.checkout import CmdCheckout
  from dvc.commands.config import CmdConfig
  from dvc.commands.data_sync import CmdDataPull, CmdDataPush
  from dvc.commands.init import CmdInit
  from dvc.commands.remove import CmdRemove
  from dvc.commands.repro import CmdRepro
  from dvc.commands.status import CmdDataStatus
  from dvc.exceptions import NotDvcRepoError
label_desc: Use image node_id 7 for calling a global function with example usage: test_add(dvc) without return types