code: def bind(self, cls, instance):
          
          self._check_class(cls)
          self._bindings[cls] = lambda: instance
          logger.debug('Bound %s to an instance %s', cls, instance)
          return self
docs: Bind a class to an instance.