code: def get_local_proxy(self, name):
          
          def get_extension_or_service_by_name():
              if name in current_app.unchained.extensions:
                  return current_app.unchained.extensions[name]
              elif name in current_app.unchained.services:
                  return current_app.unchained.services[name]
              raise KeyError(f'No extension or service was found with the name {name}.')
  
          return LocalProxy(get_extension_or_service_by_name)
docs: Returns a :class:`~werkzeug.local.LocalProxy` to the extension or service
          with ``name`` as registered with the current app.