Self contained simple example of Meta Learning

I am looking for a simple self-contained implementation of MAML with current Pytorch version. Almost all the implementations I’ve come across rely on older versions, library specific (for ex. TorchMeta). For simplicity, I want to obtain query and support set from same distribution. I want to mimick learning of fast weights and how gradients of it are transferred to original model.