class_docstr: Reports telemetry for improving product experience.
class_docstr_tok: ["Reports","telemetry","for","improving","product","experience","."]
docstr: Used for testing only to verify that the handlers are getting the right events.
docstr_tok: ["Used","for","testing","only","to","verify","that","the","handlers","are","getting","the","right","events","."]
code: def test_handler(self) -> ToMemoryTelemetryHandler:
      """Used for testing only to verify that the handlers are getting the right events."""
      return self._test_handler
  
imports: from __future__ import annotations
  import datetime
  import functools
  import logging
  import os
  import platform
  import sys
  import time
  import traceback
  import uuid
  from hashlib import sha256
  from typing import Callable, List, Optional, TypeVar
  from typing_extensions import ParamSpec
  from metricflow.random_id import random_id
  from metricflow.telemetry.handlers.handlers import TelemetryHandler, ToMemoryTelemetryHandler
  from metricflow.telemetry.handlers.python_log import PythonLoggerTelemetryHandler
  from metricflow.telemetry.models import FunctionEndEvent, FunctionStartEvent, TelemetryLevel
label_desc: Use image node_id 5 for calling the TelemetryReporter obj's underlying member method code with example usage: obj.test_handler() and returns: self