code: def get_metrics_by_name(
      prometheus_client: PrometheusConnect,
      metric_name: str,
      label_config: Optional[Dict] = {},
  ):
      metrics_data = prometheus_client.get_current_metric_value(
          metric_name, label_config=label_config
      )
      return metrics_data
  
imports: from typing import Dict, Optional
  import requests
  from docarray import DocumentArray
  from opentelemetry.context.context import Context
  from prometheus_api_client import PrometheusConnect
  from jina import Executor, requests
label_desc: Use image node_id 7 for calling a global function with example usage: get_metrics_by_name(prometheus_client, metric_name, label_config) and returns: metrics_data