def make_location(location, protocol):
    """
    Creates location object given a location and a protocol.
    :param str location: file path
    :param str protocol: protocol, for now only accepting `uri`
    :return: the location subconfiguration
    :rtype: obj
    :raises ValueError: if a protocol other than `uri` is used.

    """
    # elif protocol == "localPath":
    # return { "uri": location, "locationType": "LocalPathLocation"}
    if protocol == "uri":
        return {"uri": location, "locationType": "UriLocation"}
    else:
        raise TypeError(f"invalid protocol {protocol}")