A fragment because it’s not a complete thought. You’re not saying what’s funny. A complete thought would be “It is funny when you make jokes.” That’s s complete thought. But “it is funny” is not.
My sister and my family go to the store and my cousin and my uncle both of them buyed some ice cream