def has_children_visible_to_specific_content_groups(xblock):
 if (not xblock.has_children):
  return False
 for child in xblock.get_children():
  if is_visible_to_specific_content_groups(child):
   return True
 return False

def has_children_visible_to_specific_content_groups ( xblock ) : if ( not xblock . has_children ) : return False for child in xblock . get_children ( ) : if is_visible_to_specific_content_groups ( child ) : return True return False
returns true if this xblock has children that are limited to specific content groups .