def get_service(service_url=None, coordinator_info=None, storage_info=None, **kwargs):

    if service_url is not None:

        urlcomps = urlparse(service_url)
        if urlcomps.scheme in ('http', 'https'):
            _catalog_connection_get_http(service_url)

            from zinc.services.web import WebServiceConsumer
            return WebServiceConsumer(service_url)

        elif ('file', '') in urlcomps.scheme:
            if urlcomps.scheme == '':
                # assume it's a path and convert a file URL
                file_url = 'file://%s' % (utils.canonical_path(service_url))
            else:
                file_url = service_url

            from zinc.services.simple import SimpleServiceConsumer
            return SimpleServiceConsumer(file_url)

    elif coordinator_info is not None and storage_info is not None:

        coord_class = coordinator_for_url(coordinator_info['url'])
        coord = coord_class(**coordinator_info)

        storage_class = storage_for_url(storage_info['url'])
        storage = storage_class(**storage_info)

        from zinc.services import CustomServiceConsumer
        return CustomServiceConsumer(coordinator=coord, storage=storage)

    raise NotImplementedError()
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/client.py/get_service/swapped operands of `in`