code: def run():
      """Initializes the trial and runs the training loop with profiling enabled."""
  
      info = det.get_cluster_info()
      assert info, "Test must be run on cluster."
  
      # TODO: refactor profiling to to not use the cli_cert.
      certs.cli_cert = certs.default_load(info.master_url)
  
      with pytorch.init() as train_context:
          trial = mnist_pytorch.MNistTrial(
              train_context, hparams=info.trial.hparams
          )
          trainer = pytorch.Trainer(trial, train_context)
          trainer.configure_profiler(enabled=True)
          trainer.fit(latest_checkpoint=info.latest_checkpoint)
  
imports: import logging
  import train
  import determined
  from determined import pytorch
  from determined.common.api import certs
label_desc: Use image node_id 1 for calling a global function with example usage: run() without return types