code: def test_emit_metrics(self, caplog):
      caplog.set_level(logging.INFO)
      metrics = {"test_emit_metrics": True}
      emit_metrics(metrics)
      assert "[METRICS]" in caplog.text
  
file_path: serve/ts/tests/unit_tests/test_worker_service.py
imports: import logging
  import os
  import pytest
  from ts.context import Context
  from ts.service import Service
  from ts.service import emit_metrics
  from ts.metrics.metric_cache_yaml_impl import MetricsCacheYamlImpl
label_desc: Use image node_id 1 for calling the TestEmitMetrics obj's underlying member method code with example usage: obj.test_emit_metrics(caplog) without return types