def is_visible_to_specific_content_groups(xblock):
 if (not xblock.group_access):
  return False
 for partition in get_user_partition_info(xblock):
  if any((g['selected'] for g in partition['groups'])):
   return True
 return False

def is_visible_to_specific_content_groups ( xblock ) : if ( not xblock . group_access ) : return False for partition in get_user_partition_info ( xblock ) : if any ( ( g [ 'selected' ] for g in partition [ 'groups' ] ) ) : return True return False
returns true if this xblock has visibility limited to specific content groups .