code: def remove(self, function, update=True):
          
          self._funcs.remove(function)
          self._remove_dep(function)
          if update:
              self._update()
docs: Remove a function from the chain.