code: def _parse_exp_id(proc: "subprocess.Popen[str]") -> int:
      assert proc.stdout is not None
      for line in iter(proc.stdout.readline, ""):
          if proc.poll() is not None:
              pytest.fail(
                  f"Unexpected `det e create` failure before receiving an experiment id, "
                  f"return code: f{proc.returncode}"
              )
          m = re.search(r"Created experiment (\d+)\n", line)
          if m is not None:
              return int(m.group(1))
      pytest.fail(
          "Failed to find experiment id in `det e create` output"
      )
  
file_path: determined/e2e_tests/tests/cluster/test_proxy.py
imports: import csv
  import pathlib
  import re
  import subprocess
  import time
  from io import StringIO
  import pytest
  import requests
  from determined.common.api import bindings
  from tests import api_utils
  from tests import config
  from tests import experiment
  from tests import ray_utils
label_desc: Use image node_id 5 for calling a global function with example usage: _parse_exp_id(proc) and returns: int