def METHOD_NAME(cls: Union[type[str], type[bytes]], system: dict[str, Any]) -> Optional[bytes]:
    request = system.get("request")
    if request is not None:
        response = request.response
        response.content_type = "application/xml"
        io = self.generator.get_class_xsd(BytesIO(), cls)
        return cast(bytes, io.getvalue())
    return None