This is the German word for "potato head". A rather silly and only slightly denigrating insult, it is mainly used to confuse people.
person 1: Haha I am smarter than you! Did you think that I would fall for the can of nuts trick? Kartoffelkopf!
person 1: That's right! I also know German!