class_docstr: Base class for testing Profet tasks.
class_docstr_tok: ["Base","class","for","testing","Profet","tasks","."]
docstr: Tests that two tasks with different arguments give different results.
docstr_tok: ["Tests","that","two","tasks","with","different","arguments","give","different","results","."]
code: def test_sanity_check(
      self,
      profet_train_config: MetaModelConfig,
      profet_input_dir: Path,
      checkpoint_dir: Path,
  ):
      """Tests that two tasks with different arguments give different results."""
      first_task_kwargs = dict(
          model_config=profet_train_config,
          input_dir=profet_input_dir,
          checkpoint_dir=checkpoint_dir,
      )
  
      first_task = self.Task(**first_task_kwargs)
      first_trial = sample(first_task)
  
      first_results = first_task(**first_trial.params)
      assert len(first_results) == 1
      assert first_results[0]["type"] == "objective"
      first_objective = first_results[0]["value"]
  
      second_task_model_config = replace(
          profet_train_config, seed=profet_train_config.seed + 456
      )
      second_task_kwargs = first_task_kwargs.copy()
      second_task_kwargs["model_config"] = second_task_model_config
  
      second_task = self.Task(**second_task_kwargs)
      second_trial = sample(second_task)
      assert second_trial != first_trial
  
      second_results = second_task(**second_trial.params)
      assert second_results != first_results
  
      assert len(second_results) == 1
      assert second_results[0]["type"] == "objective"
      second_objective = second_results[0]["value"]
      assert first_objective != second_objective
  
imports: from dataclasses import asdict, replace
  from logging import getLogger
  from pathlib import Path
  from typing import ClassVar, Type
  import numpy
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from orion.algo.space import Space
  from typing import List, Union, overload
  from pytest_mock import MockerFixture
  from orion.benchmark.task.profet.profet_task import MetaModelConfig, ProfetTask
  from orion.core.worker.trial import Trial
  from .conftest import REAL_PROFET_DATA_DIR, is_nonempty_dir
label_desc: Use image node_id 8 for calling the ProfetTaskTests obj's underlying member method code with example usage: obj.test_sanity_check(profet_train_config, profet_input_dir, checkpoint_dir) without return types