code: def resolve(self, key):
          
          try:
              return self._resolve_from_binding(key)
          except NotBoundError:
              return self._resolve_from_entry_point(key)
docs: Resolve a key to a factory.
  
          Attempts to resolve explicit bindings and entry points, preferring
          explicit bindings.
  
          :raises NotBoundError: if the key cannot be resolved