Looking for function to return user membership from userID

Hey guys,

I'm sure this has been asked before, but I couldn't find it in the forums, so here it is. Is there a function that I can use to return a user's membership by the userID? Something like, some_function($userID);? Even if it just returned whether or not that user was currently a paying subscriber that would be great! Thanks in advance.