<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attribute_statement(self, subject, attributes):
 """ Build an AttributeStatement XML block for a SAML 1.1 Assertion. """

        attribute_statement = etree.Element('AttributeStatement')
        attribute_statement.append(subject)
        for name, value in attributes.items():
            attribute = etree.SubElement(attribute_statement, 'Attribute')
            attribute.set('AttributeName', name)
            attribute.set('AttributeNamespace', self.namespace)
            if isinstance(value, list):
                for v in value:
                    attribute_value = etree.SubElement(attribute, 'AttributeValue')
                    attribute_value.text = force_text(v)
            else:
                attribute_value = etree.SubElement(attribute, 'AttributeValue')
                attribute_value.text = force_text(value)
        return attribute_statement