from typing import Generator


def get_isolate_id() -> Generator[dict, dict, str]:
    """Returns the isolate id.

    Returns
    -------
    id: str
            The isolate id.

    **Experimental**
    """
    response = yield {"method": "Runtime.getIsolateId", "params": {}}
    return response["id"]