is_gpt function

Test if the object is a 'gpt' object