code: def configure(self, ns, mappings=None, **kwargs):
          
          if mappings is None:
              mappings = dict()
          mappings.update(kwargs)
  
          for operation, definition in mappings.items():
              try:
                  configure_func = self._find_func(operation)
              except AttributeError:
                  pass
              else:
                  configure_func(ns, self._make_definition(definition))
docs: Apply mappings to a namespace.