Imported from https://github.com/SeonbeomKim/TensorFlow-Matching_Networks_for_One_Shot_Learning