def parse_device_uri(uri):
    """
    Parse device uri to get platform, host, uuid and other params

    Args:
        uri: e.g. Android:///SJE5T17B17?cap_method=javacap&touch_method=adb

    Returns:

    """
    d = urlparse(uri)
    platform = d.scheme
    host = d.netloc
    uuid = d.path.lstrip("/")
    params = dict(parse_qsl(d.query))
    if host:
        params["host"] = host.split(":")
    return platform, uuid, params

    Parse device uri to get platform, host, uuid and other params

    Args:
        uri: e.g. Android:///SJE5T17B17?cap_method=javacap&touch_method=adb

    Returns:

    
airtest/utils/snippet.py