In-Context Learning Functions with Varying Number of Minima