import re


def _parse_pod_id(pod_id):
    """
    Helper function to parse pod_id from scope responses.
    """
    parsed_pod_id = None
    r = re.match(r"^(.*);<pod>$", pod_id)
    if r:
        parsed_pod_id = r.group(1)
    return parsed_pod_id