code: def get_trace_ids(traces):
      trace_ids = set()
      for trace in traces:
          trace_ids.add(_get_trace_id(trace))
          for span in trace["spans"]:
              trace_ids.add(_get_trace_id(span))
  
      return trace_ids
  
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 3 for calling a global function with example usage: get_trace_ids(traces) and returns: trace_ids