code: def median(values):
      n = len(values)
      if n == 0:
          raise ValueError("median requires at least one value")
      elif n % 2 == 0:
          return (values[(n // 2) - 1] + values[n // 2]) / 2
      else:
          return values[n // 2]
  
file_path: arrow/dev/archery/archery/benchmark/core.py
label_desc: Use image node_id 1 for calling a global function with example usage: median(values) and returns: unknown, values