code: def test_illegal_input(scenario, runhistory, config1):
      assert runhistory.empty()
      runhistory.multi_objective_algorithm = MeanAggregationStrategy(
          scenario
      )
  
      with pytest.raises(ValueError):
          runhistory.add(
              config=config1,
              cost=[4.5, 5.5, 6.5],
              time=20,
              status=StatusType.SUCCESS,
              instance=1,
              seed=12354,
              starttime=10,
              endtime=30,
              additional_info={"start_time": 10},
          )
  
          runhistory.add(
              config=config1,
              cost=[2.5, 5.5],
              time=20,
              status=StatusType.SUCCESS,
              instance=1,
              seed=12354,
              starttime=10,
              endtime=30,
              additional_info={"start_time": 10},
          )
  
imports: import pickle
  import tempfile
  import pytest
  from smac.multi_objective.aggregation_strategy import MeanAggregationStrategy
  from smac.runner.abstract_runner import StatusType
  from smac.scenario import Scenario
label_desc: Use image node_id 6 for calling a global function with example usage: test_illegal_input(scenario, runhistory, config1) without return types