def addImportSchema(self, schema):
if not isinstance(schema, XMLSchema):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if schema.targetNamespace != self.targetNamespace:<EOL><INDENT>self._imported_schemas[schema.targetNamespace] = schema<EOL><DEDENT>else:<EOL><INDENT>raise SchemaError('<STR_LIT>')<EOL><DEDENT>
for resolving import statements in Schema instance
           schema -- schema instance
           _imported_schemas