code: def det_cmd_json(cmd: List[str]) -> Any:
      res = det_cmd(cmd, check=True)
      return json.loads(res.stdout)
  
file_path: determined/e2e_tests/tests/cluster/test_groups.py
imports: import json
  import subprocess
  from typing import Any, List
  import pytest
  from tests import config
  from .test_users import get_random_string, logged_in_user
label_desc: Use image node_id 2 for calling a global function with example usage: det_cmd_json(cmd) and returns: json