code: def get_transport(name):
      '''
      Return the transport class.
      '''
      try:
          log.debug('Using %s as transport', name)
          return TRANSPORT_LOOKUP[name]
      except KeyError:
          msg = 'Transport {} is not available. Are the dependencies installed?'.format(name)
          log.error(msg, exc_info=True)
          raise InvalidTransportException(msgf get_transport(name):
      '''
      Return the transport class.
      '''
      try:
          log.debug('Using %s as transport', name)
          return TRANSPORT_LOOKUP[name]
      except KeyError:
          msg = 'Transport {} is not available. Are the dependencies installed?'.format(name)
          log.error(msg, exc_info=True)
          raise InvalidTransportException(msg)
docs: Return the transport class.