code: def get_connection(path=None, fail_silently=False, **kwargs):
      
  
      path = path or getattr(settings, 'SENDSMS_BACKEND', 'sendsms.backends.locmem.SmsBackend')
      try:
          mod_name, klass_name = path.rsplit('.', 1)
          mod = import_module(mod_name)
      except AttributeError as e:
          raise ImproperlyConfigured(u'Error importing sms backend module %s: "%s"' % (mod_name, e))
  
      try:
          klass = getattr(mod, klass_name)
      except AttributeError:
          raise ImproperlyConfigured('Module "%s" does not define a "%s" class' % (mod_name, klass_name))
  
      return klass(fail_silently=fail_silently, **kwargs)
docs: Load an sms backend and return an instance of it.
  
      :param string path: backend python path. Default: sendsms.backends.console.SmsBackend
      :param bool fail_silently: Flag to not throw exceptions on error. Default: False
      :returns: backend class instance.
      :rtype: :py:class:`~sendsms.backends.base.BaseSmsBackend` subclass