code: def test_continue_trial_time() -> None:
      exp_id = exp.create_experiment(
          conf.fixtures_path("no_op/single-medium-train-step.yaml"),
          conf.fixtures_path("no_op"),
          ["--config", "hyperparameters.metrics_sigma=-1.0"],
      )
      exp.wait_for_experiment_state(
          exp_id, bindings.experimentv1State.ERROR
      )
  
      sess = api_utils.determined_test_session()
  
      def exp_start_end_time() -> Tuple[str, str]:
          e = bindings.get_GetExperiment(
              sess, experimentId=exp_id
          ).experiment
          assert e.endTime is not None
          return e.startTime, e.endTime
  
      def trial_start_end_time() -> Tuple[str, str]:
          experiment_trials = exp.experiment_trials(exp_id)
          assert len(experiment_trials) == 1
          assert experiment_trials[0].trial.endTime is not None
          return (
              experiment_trials[0].trial.startTime,
              experiment_trials[0].trial.endTime,
          )
  
      exp_orig_start, exp_orig_end = exp_start_end_time()
      trial_orig_start, trial_orig_end = trial_start_end_time()
  
      det_cmd(["e", "continue", str(exp_id)], check=True)
      exp.wait_for_experiment_state(
          exp_id, bindings.experimentv1State.ERROR
      )
  
      exp_new_start, exp_new_end = exp_start_end_time()
      trial_new_start, trial_new_end = trial_start_end_time()
  
      assert exp_orig_start == exp_new_start
      assert trial_orig_start == trial_new_start
  
      assert exp_new_end > exp_orig_end
      assert trial_new_end > trial_orig_end
  
      # Task times are updated.
      experiment_trials = exp.experiment_trials(exp_id)
      assert len(experiment_trials) == 1
      task_ids = experiment_trials[0].trial.taskIds
      assert task_ids is not None
      assert len(task_ids) == 2
  
      assert (
          task_ids[1] == task_ids[0] + "-1"
      )  # Task IDs are formatted prevTaskID-N
  
      task = bindings.get_GetTask(sess, taskId=task_ids[1]).task
      assert task.startTime > exp_orig_end
      assert task.endTime is not None
      assert task.endTime > task.startTime
  
file_path: determined/e2e_tests/tests/cluster/test_exp_continue.py
imports: import subprocess
  import tempfile
  from typing import Any, List, Tuple
  import pytest
  from determined.common import util
  from determined.common.api import bindings
  from tests import api_utils
  from tests import config
  from tests import experiment
label_desc: Use image node_id 6 for calling a global function with example usage: test_continue_trial_time() and returns: e,  e, experiment_trials,  experiment_trials