code: def test_noop_single_warm_start() -> None:
      experiment_id1 = exp.run_basic_test(
          conf.fixtures_path("no_op/single.yaml"),
          conf.fixtures_path("no_op"),
          1,
      )
  
      trials = exp.experiment_trials(experiment_id1)
      assert len(trials) == 1
  
      first_trial = trials[0].trial
      first_trial_id = first_trial.id
  
      first_workloads = trials[0].workloads
      assert len(first_workloads) == 90
      checkpoints = exp.workloads_with_checkpoint(first_workloads)
      assert len(checkpoints) == 30
      first_checkpoint_uuid = checkpoints[0].uuid
      last_checkpoint_uuid = checkpoints[-1].uuid
      last_validation = exp.workloads_with_validation(first_workloads)[
          -1
      ]
      assert last_validation.metrics.avgMetrics[
          "validation_error"
      ] == pytest.approx(0.9**30)
  
      config_base = conf.load_config(
          conf.fixtures_path("no_op/single.yaml")
      )
  
      # Test source_trial_id.
      config_obj = copy.deepcopy(config_base)
      # Add a source trial ID to warm start from.
      config_obj["searcher"]["source_trial_id"] = first_trial_id
  
      experiment_id2 = exp.run_basic_test_with_temp_config(
          config_obj, conf.fixtures_path("no_op"), 1
      )
  
      trials = exp.experiment_trials(experiment_id2)
      assert len(trials) == 1
  
      second_trial = trials[0]
      assert len(second_trial.workloads) == 90
  
      # Second trial should have a warm start checkpoint id.
      assert (
          second_trial.trial.warmStartCheckpointUuid
          == last_checkpoint_uuid
      )
  
      val_workloads = exp.workloads_with_validation(
          second_trial.workloads
      )
      assert val_workloads[-1].metrics.avgMetrics[
          "validation_error"
      ] == pytest.approx(0.9**60)
  
      # Now test source_checkpoint_uuid.
      config_obj = copy.deepcopy(config_base)
      # Add a source trial ID to warm start from.
      config_obj["searcher"]["source_checkpoint_uuid"] = checkpoints[
          0
      ].uuid
  
      with tempfile.NamedTemporaryFile() as tf:
          with open(tf.name, "w") as f:
              util.yaml_safe_dump(config_obj, f)
  
          experiment_id3 = exp.run_basic_test(
              tf.name, conf.fixtures_path("no_op"), 1
          )
  
      trials = exp.experiment_trials(experiment_id3)
      assert len(trials) == 1
  
      third_trial = trials[0]
      assert len(third_trial.workloads) == 90
  
      assert (
          third_trial.trial.warmStartCheckpointUuid
          == first_checkpoint_uuid
      )
      validations = exp.workloads_with_validation(third_trial.workloads)
      assert validations[1].metrics.avgMetrics[
          "validation_error"
      ] == pytest.approx(0.9**3)
  
imports: import copy
  import os
  import shutil
  import tempfile
  import time
  import pytest
  from determined.common import check, util
  from determined.common.api import bindings
  from determined.experimental import Determined
  from tests import config
  from tests import experiment
label_desc: Use image node_id 7 for calling a global function with example usage: test_noop_single_warm_start() without return types