<s> import saml2 <EOL> from saml2 import md <EOL> NAMESPACE = '<STR_LIT>' <EOL> BINDING_DISCO = "<STR_LIT>" <EOL> class DiscoveryResponse ( md . IndexedEndpointType_ ) : <EOL> """<STR_LIT>""" <EOL> c_tag = '<STR_LIT>' <EOL> c_namespace = NAMESPACE <EOL> c_children = md . IndexedEndpointType_ . c_children . copy ( ) <EOL> c_attributes = md . IndexedEndpointType_ . c_attributes . copy ( ) <EOL> c_child_order = md . IndexedEndpointType_ . c_child_order [ : ] <EOL> c_cardinality = md . IndexedEndpointType_ . c_cardinality . copy ( ) <EOL> def discovery_response_from_string ( xml_string ) : <EOL> return saml2 . create_class_from_xml_string ( DiscoveryResponse , xml_string ) <EOL> ELEMENT_FROM_STRING = { <EOL> DiscoveryResponse . c_tag : discovery_response_from_string , <EOL> } <EOL> ELEMENT_BY_TAG = { <EOL> '<STR_LIT>' : DiscoveryResponse , <EOL> } <EOL> def factory ( tag , ** kwargs ) : <EOL> return ELEMENT_BY_TAG [ tag ] ( ** kwargs ) </s>
