code: def metrics_setup() -> Tuple[InMemoryMetricReader, MeterProvider]:
      metric_reader = InMemoryMetricReader()
      meter_provider = MeterProvider(metric_readers=[metric_reader])
      meter = meter_provider.get_meter("test")
      yield metric_reader, meter
      if hasattr(meter_provider, "force_flush"):
          metric_reader.force_flush()
      if hasattr(meter_provider, "shutdown"):
          meter_provider.shutdown()
  
file_path: jina/tests/unit/serve/instrumentation/test_networking_histograms.py
imports: from typing import Dict, List, Tuple
  import pytest
  from opentelemetry.metrics import Meter
  from opentelemetry.sdk.metrics import MeterProvider
  from opentelemetry.sdk.metrics.export import HistogramDataPoint, InMemoryMetricReader, Metric
  from jina.serve.networking.instrumentation import _NetworkingHistograms
label_desc: Use image node_id 1 for calling a global function with example usage: metrics_setup() without return types