Emergence of a finite-size-scaling function in the supervised learning of the Ising phase transition