@field
    def district(self):
        if 'District' in self.parsed_object:
            return self.parsed_object['District'].findtext('a')
        else:
            return self.parsed_object[
                'Located within the boundaries of this public school district'
            ].text
dataset/ETHPy150Open codeforsanjose/calischools/data/api/cde.py/CdeSchoolDetail.district/original