I was studying the sklearn Pipeline object and also Pytorch nn module. In both cases it is possible to attach other object in to the constructor subclass of Pytorch or add a tup