code: def test_recording_methods(
      metrics_setup: Tuple[InMemoryMetricReader, Meter]
  ):
      metric_reader, meter = metrics_setup
  
      a: _NetworkingHistograms = _NetworkingHistograms(
          sending_requests_time_metrics=meter.create_histogram(
              "request_time"
          ),
          send_requests_bytes_metrics=meter.create_histogram(
              "request_bytes"
          ),
          received_response_bytes=meter.create_histogram(
              "response_bytes"
          ),
          histogram_metric_labels=None,
      )
  
      a.record_sending_requests_time_metrics(10)
      a.record_send_requests_bytes_metrics(20)
      a.record_received_response_bytes(30)
  
      histogram_metrics: List[Metric] = (
          metric_reader.get_metrics_data()
          .resource_metrics[0]
          .scope_metrics[0]
          .metrics
      )
      data_points_sums: Dict[str, HistogramDataPoint] = {
          hist.name: next(iter(hist.data.data_points)).sum
          for hist in histogram_metrics
      }
      assert data_points_sums == {
          "request_time": 10,
          "request_bytes": 20,
          "response_bytes": 30,
      }
  
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 3 for calling a global function with example usage: test_recording_methods(metrics_setup) without return types