Building a MinDiff Model Library

I have created a function which takes dataset, mask and original model parameters to return the MinDiff model after compiling which helps user to get the model without pre-processing the given data for training of the MinDiff model. So am I be able to create a library for the same?