class_docstr: For correct behavior, for MaxPooling and similar, for XnorPrecisionType, have to propagate
  the type to the output.
code: def transform(self, model, node):
      outvar = node.get_output_variable()
      outvar.type.precision = XnorPrecisionType()
      return True
  
imports: from hls4ml.model.layers import GlobalPooling1D, GlobalPooling2D, Pooling1D, Pooling2D
  from hls4ml.model.optimizer import OptimizerPass
  from hls4ml.model.types import XnorPrecisionType
label_desc: Use image node_id 2 for calling the XnorPooling obj's underlying member method code with example usage: obj.transform(model, node) and returns: True