code: def _wrap_public_method(self, attr):
          
          def wrapper(*args, **kwargs):
              return getattr(self.connection, attr)(*args, **kwargs)
          return wrapper
docs: Ensure that plugin will call current connection method when accessing
          as ``plugin.<public_method>(*args, **kwargs)``.