A machine-learning-based tool for last closed-flux surface reconstruction on tokamaks. (1st May 2023)