code: def mock_telemetry(monkeypatch):
      telemetry.Telemetry("ploomber", "0.14.0", MOCK_API_KEY)
  
      mock = Mock()
      mock_dt = Mock()
      mock_dt.now.side_effect = [1, 2]
  
      monkeypatch.setattr(telemetry.Telemetry, "log_api", mock)
      monkeypatch.setattr(telemetry.datetime, "datetime", mock_dt)
      monkeypatch.setattr(
          telemetry.sys, "argv", ["/path/to/bin", "arg"]
      )
  
      yield mock
  
imports: import pytest
  from unittest.mock import Mock, call
  from ploomber_core.telemetry import telemetry
  from sklearn_evaluation.telemetry import SKLearnEvaluationLogger
label_desc: Use image node_id 1 for calling a global function with example usage: mock_telemetry(monkeypatch) without return types