code: def _start_cluster_and_get_address(parameter: str) -> str:
      command_args = parameter.split(" ")
      out = ray._private.utils.decode(
          subprocess.check_output(
              command_args, stderr=subprocess.STDOUT
          )
      )
      # Get the redis address from the output.
      address_prefix = "--address='"
      address_location = out.find(address_prefix) + len(address_prefix)
      address = out[address_location:]
      address = address.split("'")[0]
      return address
  
file_path: ray/python/ray/workflow/tests/conftest.py
imports: from contextlib import contextmanager
  import subprocess
  import pytest
  import ray
  from ray.tests.conftest import get_default_fixture_ray_kwargs
  from ray._private.test_utils import simulate_storage
  from ray.cluster_utils import Cluster
  from ray.tests.conftest import pytest_runtest_makereport
  from ray.workflow.tests import utils
label_desc: Use image node_id 7 for calling a global function with example usage: _start_cluster_and_get_address(parameter) and returns: address