def load_transport_provider(provider_name):
  """
    :param provider_name: string name of the transport provider.
  """
  if provider_name in transport_providers:
    return transport_providers[provider_name]
  short_name = "flask_telegram_{}".format(provider_name)
  module_name = "flask.ext.telegram_{}".format(provider_name)
  rv = __import__(module_name, None, None, [short_name])
  for k, v in [_ for _ in rv.__dict__.iteritems() if type(_[1]) is type]:
    if issubclass(v, TransportProvider) and v.name == provider_name:
      register_transport_provider(v)
      return v
  raise ValueError("provider not found: %s", provider_name)
dataset/ETHPy150Open gregorynicholas/flask-telegram/flask_telegram.py/load_transport_provider/original