code: def test_uniform_average_time(metric):
      """Tests that uniform_average_time indeed ignores index."""
      y_true = _make_panel()
      y_pred = _make_panel()
  
      metric_obj = metric(multilevel="uniform_average_time")
  
      y_true_noix = y_true.reset_index(drop=True)
      y_pred_noix = y_pred.reset_index(drop=True)
  
      res = metric_obj.evaluate(
          y_true=y_true,
          y_pred=y_pred,
          y_pred_benchmark=y_pred,
          y_train=y_true,
      )
  
      res_noix = metric_obj.evaluate(
          y_true=y_true_noix,
          y_pred=y_pred_noix,
          y_pred_benchmark=y_pred_noix,
          y_train=y_true_noix,
      )
  
      assert np.allclose(res, res_noix)
  
file_path: sktime/sktime/performance_metrics/tests/test_metrics_classes.py
imports: from inspect import getmembers, isclass
  import numpy
  import pandas
  import pytest
  from sktime.datasets import load_airline
  from sktime.performance_metrics.forecasting import MeanSquaredError, _classes, make_forecasting_scorer
  from sktime.utils._testing.hierarchical import _make_hierarchical
  from sktime.utils._testing.panel import _make_panel
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 6 for calling a global function with example usage: test_uniform_average_time(metric) without return types