code: def test_daemon_analytics(mocker, tmp_path):
      mock_send = mocker.patch("dvc.analytics.send")
      report = os.fspath(tmp_path)
      assert main(["daemon", "analytics", report]) == 0
  
      mock_send.assert_called_with(report)
  
file_path: dvc/tests/func/test_analytics.py
imports: import os
  import pytest
  from dvc.analytics import _scm_in_use, collect_and_send_report
  from dvc.cli import main
  from dvc.repo import Repo
  from tests.utils import ANY
label_desc: Use image node_id 1 for calling a global function with example usage: test_daemon_analytics(mocker, tmp_path) without return types