code: def test_telemetry_off() -> None:  # noqa: D
      reporter = TelemetryReporter(
          report_levels_higher_or_equal_to=TelemetryLevel.OFF
      )
      reporter.add_python_log_handler()
      reporter.add_test_handler()
  
      @log_call(telemetry_reporter=reporter, module_name=__name__)
      def test_function() -> str:
          return "foo"
  
      test_function()
  
      with pytest.raises(ValueError):
  
          @log_call(telemetry_reporter=reporter, module_name=__name__)
          def test_exception_function() -> str:
              raise ValueError("foo")
  
          test_exception_function()
  
      assert len(reporter.test_handler.payloads) == 0
  
file_path: metricflow/metricflow/test/telemetry/test_telemetry.py
imports: from __future__ import annotations
  import logging
  import pytest
  from metricflow.telemetry.models import TelemetryLevel
  from metricflow.telemetry.reporter import TelemetryReporter, log_call
label_desc: Use image node_id 4 for calling a global function with example usage: test_telemetry_off() and returns: str