code: def _check_test_command(workspace_name: str) -> None:
      with command.interactive_command(
          "cmd",
          "run",
          "-w",
          workspace_name,
          "bash",
          "-c",
          "echo $(id -g -n):$(id -g)",
      ) as cmd:
          for line in cmd.stdout:
              if f"{GROUPNAME}:{GID}" in line:
                  break
          else:
              raise AssertionError(
                  f"Did not find {GROUPNAME}:{GID} in output"
              )
  
file_path: determined/e2e_tests/tests/cluster/test_agent_user_group.py
imports: import re
  import uuid
  from time import sleep
  import pytest
  from determined.common.api import Session, bindings, errors
  from determined.common.api.bindings import experimentv1State
  from tests import api_utils, command
  from tests import config
  from tests import experiment
label_desc: Use image node_id 2 for calling a global function with example usage: _check_test_command(workspace_name) without return types