def IsAutoGenerated(xml_str):
 try:
  xml_root = ElementTree.fromstring(xml_str)
  return ((xml_root.tag == 'datastore-indexes') and _BooleanAttribute(xml_root.attrib.get('autoGenerate', 'false')))
 except ElementTree.ParseError:
  return False

def IsAutoGenerated ( xml_str ) : try : xml_root = ElementTree . fromstring ( xml_str ) return ( ( xml_root . tag == 'datastore-indexes' ) and _BooleanAttribute ( xml_root . attrib . get ( 'autoGenerate' , 'false' ) ) ) except ElementTree . ParseError : return False
test if the given datastore-indexes .