code: def _check_test_experiment(project_id: int) -> None:
      # Create an experiment in that project.
      test_exp_id = exp.create_experiment(
          conf.fixtures_path("core_api/whoami.yaml"),
          conf.fixtures_path("core_api"),
          ["--project_id", str(project_id)],
      )
      exp.wait_for_experiment_state(
          test_exp_id,
          experimentv1State.COMPLETED,
      )
  
      trials = exp.experiment_trials(test_exp_id)
      trial_id = trials[0].trial.id
      trial_logs = exp.trial_logs(trial_id)
  
      marker = "id output: "
      for line in trial_logs:
          if marker in line:
              id_output = line[line.index(marker) + len(marker) :]
              match = re.match(
                  r"uid=(\d+)\((\w+)\).+?gid=(\d+)\((\w+)\)", id_output
              )
              if match is None:
                  pytest.fail("failed to parse id output")
  
              uid, username, gid, groupname = match.groups()
              assert int(gid) == GID
              assert groupname == GROUPNAME
              break
      else:
          pytest.fail("failed to find id 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 3 for calling a global function with example usage: _check_test_experiment(project_id) without return types