code: def test_benchmark_median():
      assert median([10]) == 10
      assert median([1, 2, 3]) == 2
      assert median([1, 2]) == 1.5
      assert median([1, 2, 3, 4]) == 2.5
      assert median([1, 1, 1, 1]) == 1
      try:
          median([])
          assert False
      except ValueError:
          pass
  
imports: import json
  from archery.benchmark.codec import JsonEncoder
  from archery.benchmark.core import Benchmark, median
  from archery.benchmark.compare import BenchmarkComparator, RunnerComparator
  from archery.benchmark.google import GoogleBenchmark, GoogleBenchmarkObservation
  from archery.benchmark.runner import StaticBenchmarkRunner
label_desc: Use image node_id 6 for calling a global function with example usage: test_benchmark_median() without return types