code: def test_deprecated_summary_observe(port_generator):
      metrics_registry = CollectorRegistry()
  
      port = port_generator()
      start_http_server(port, registry=metrics_registry)
  
      metric = _SummaryDeprecated(
          old_name="old",
          name="new",
          documentation="New",
          namespace="jina",
          registry=metrics_registry,
      )
  
      metric.observe(1.0)
  
      metric_parsed = get_metric_values(
          req.get(f"http://localhost:{port}/").content.decode()
      )
  
      assert (
          metric_parsed["jina_new_sum"] == metric_parsed["jina_old_sum"]
      )
      assert (
          metric_parsed["jina_new_created"]
          == metric_parsed["jina_old_created"]
      )
      assert (
          metric_parsed["jina_new_count"]
          == metric_parsed["jina_old_count"]
      )
  
file_path: jina/tests/integration/monitoring/test_deprecated_metric.py
imports: import time
  import requests
  from prometheus_client import CollectorRegistry, start_http_server
  from jina.serve.monitoring import _SummaryDeprecated
  from .None import get_metric_values
label_desc: Use image node_id 1 for calling a global function with example usage: test_deprecated_summary_observe(port_generator) without return types