def detach_required():
 if (parent_is_inet() or parent_is_init()):
  return False
 return True

def detach_required ( ) : if ( parent_is_inet ( ) or parent_is_init ( ) ) : return False return True
check if detaching is required this is done by collecting the results of parent_is_inet and parent_is_init .