code: def test_no_recursive_spawn(mocker):
      mocker.patch.dict(os.environ, {daemon.DVC_DAEMON: "1"})
      mock_spawn = mocker.patch("dvc.daemon._spawn")
      daemon.daemon(["updater"])
      mock_spawn.assert_not_called()
  
imports: import inspect
  import os
  from dvc import daemon
label_desc: Use image node_id 2 for calling a global function with example usage: test_no_recursive_spawn(mocker) without return types