The authors of Weak consistency of the 1-nearest neighbor measure with applications to missing data and covariate shift have not publicly listed the code yet.
Request code directly from the authors:
Get an expert to implement this paper:
(OR if you have code to share with the community, please add it here 😊🙏 )