code: def test_mnist_pytorch_accuracy(client: _client.Determined) -> None:
      config = conf.load_config(
          conf.tutorials_path("mnist_pytorch/const.yaml")
      )
      experiment_id = exp.run_basic_test_with_temp_config(
          config, conf.tutorials_path("mnist_pytorch"), 1
      )
  
      trials = exp.experiment_trials(experiment_id)
      validations = _get_validation_metrics(client, trials[0].trial.id)
      validation_accuracies = [v["accuracy"] for v in validations]
  
      target_accuracy = 0.97
      assert max(validation_accuracies) > target_accuracy, (
          "mnist_pytorch did not reach minimum target accuracy {}."
          " full validation accuracy history: {}".format(
              target_accuracy, validation_accuracies
          )
      )
  
file_path: determined/e2e_tests/tests/nightly/test_convergence.py
imports: from typing import Any, Dict, List
  import pytest
  from determined.experimental import client
  from tests import config
  from tests import experiment
label_desc: Use image node_id 2 for calling a global function with example usage: test_mnist_pytorch_accuracy(client) without return types