code: def get_scoped_config(self, graph):
          
          def loader(metadata):
              if not self.current_scope:
                  target = graph.config
              else:
                  target = graph.config.get(self.current_scope, {})
              return {
                  self.key: target.get(self.key, {}),
              }
  
          defaults = {
              self.key: get_defaults(self.func),
          }
          return configure(defaults, graph.metadata, loader)
docs: Compute a configuration using the current scope.