code: def test_invaild_percentile_report():
      with pytest.raises(ValueError):
          Percentile(-1, 10, lambda x: ...)
  
      with pytest.raises(ValueError):
          Percentile(1, -1, lambda x: ...)
  
      with pytest.raises(ValueError):
          with record_time_cost_percentile([]):
              raise ValueError
  
file_path: mars/mars/metrics/tests/test_metric_api.py
imports: import pytest
  from random import random
  from ..None import api
  from ..api import init_metrics, Metrics, _percentile_builder, Percentile, record_time_cost_percentile, shutdown_metrics
label_desc: Use image node_id 8 for calling a global function with example usage: test_invaild_percentile_report() without return types