import re


def _parse_container_id(container_id):
    """
    Helper function to parse container_id from scope response.
    """
    parsed_container_id = None
    r = re.match(r"^(.*);<container>$", container_id)

    if r:
        parsed_container_id = r.group(1)

    return parsed_container_id