def METHOD_NAME(self, namespace):
    self[namespace.prefix] = namespace.uri
    if namespace.schema_location:
        self._schema_location_dict[namespace.uri] = (
            namespace.schema_location
        )