you could do ```isinstance(unhashable_object, (tuple, list))```