def get_store_from_uri(uri):
    """
    Given a URI, return the store object that would handle
    operations on the URI.

    :param uri: URI to analyze
    """
    scheme = uri[0:uri.find('/') - 1]
    return get_store_from_scheme(scheme)
dataset/ETHPy150Open openstack/glance_store/glance_store/backend.py/get_store_from_uri/original