code: def set_template(template_name: str, template_file: str) -> str:
      completed_process = maybe_set_template(
          template_name, template_file
      )
      assert completed_process.returncode == 0
      m = re.search(
          r"Set template (\w+)", str(completed_process.stdout)
      )
      assert m is not None
      return str(m.group(1))
  
file_path: determined/e2e_tests/tests/template/template.py
imports: import os
  import re
  import subprocess
  from tests import config
label_desc: Use image node_id 1 for calling a global function with example usage: set_template(template_name, template_file) and returns: str