def METHOD_NAME(self, queue: Queue) -> None:
    with self.assertLogs(logger="huggingface_hub.utils._telemetry", level="DEBUG") as captured:
        send_telemetry(topic="topic")
        queue.join()
    # Assert debug message with traceback for debug purposes
    self.assertEqual(len(captured.output), 1)
    self.assertEqual(
        captured.output[0],
        "DEBUG:huggingface_hub.utils._telemetry:Error while sending telemetry: whatever",
    )