code: def test_add_task_args(tmp_path):
      """Test adding task with args specified."""
      benchmark = benchmarks.BaseBenchmark()
  
      benchmark.add_estimator(NaiveForecaster(strategy="drift"))
      benchmark._add_task(
          task_entrypoint=factory_estimator_class_task,
          task_kwargs={"some_kwarg": "some_value"},
          task_id="test_id-v1",
      )
  
      results_file = tmp_path / "results.csv"
      results_df = benchmark.run(results_file)
  
      assert results_df.iloc[0, 0] == "test_id-v1"
  
file_path: sktime/sktime/benchmarking/tests/test_benchmarks.py
imports: from typing import Callable
  import pandas
  import pytest
  from sktime.base import BaseEstimator
  from sktime.benchmarking import benchmarks
  from sktime.forecasting.naive import NaiveForecaster
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 4 for calling a global function with example usage: test_add_task_args(tmp_path) without return types