code: def det_cmd(
      cmd: List[str], **kwargs: Any
  ) -> subprocess.CompletedProcess:
      return subprocess.run(
          ["det", "-m", conf.make_master_url()] + cmd,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          **kwargs,
      )
  
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 1 for calling a global function with example usage: det_cmd(cmd) and returns: subprocess