If you are talking of the Tom and Jerry cartoon, I haven't seen it. in fact, look up "Fair Weather Friend". Basically, it's a person who will be your friend until your money or kindness run out, then is no longer your friend.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.