def _has_detached_class_tag(descriptor):
 return (ACCESS_GRANTED if ('detached' in descriptor._class_tags) else ACCESS_DENIED)

def _has_detached_class_tag ( descriptor ) : return ( ACCESS_GRANTED if ( 'detached' in descriptor . _class_tags ) else ACCESS_DENIED )
returns if the given descriptors type is marked as detached .