@library.global_function
def is_group_instance(obj):
 from mozillians.groups.models import Group
 return isinstance(obj, Group)

@ library . global_function def is_group_instance ( obj ) : from mozillians . groups . models import Group return isinstance ( obj , Group )
check if the obj is of group type .