code: def test_benchmark_empty():
      # len() == 0
      with pytest.raises(
          ValueError, match="Cannot benchmark dataset with 0 elem"
      ):
          benchmark.benchmark([])
  
      # len() == 1
      result = benchmark.benchmark([1])
      assert isinstance(result, benchmark.BenchmarkResult)
  
imports: import pytest
  import tensorflow
  from tensorflow_datasets.core.utils import benchmark
label_desc: Use image node_id 3 for calling a global function with example usage: test_benchmark_empty() without return types