@staticmethod
    def from_config(config):
        provider = config.get('ship_provider',
                              ShipsProviderFactory.DEFAULT_PROVIDER)

        if provider not in ShipsProviderFactory.PROVIDERS:
            raise exceptions.EnvironmentConfigurationException(
                'Invalid ship provider {}! Available providers: {}'
                .format(provider,
                        ', '.join(ShipsProviderFactory.PROVIDERS.keys())))
        return ShipsProviderFactory.PROVIDERS[provider](config)
dataset/ETHPy150Open signalfx/maestro-ng/maestro/shipproviders.py/ShipsProviderFactory.from_config/original