code: def format(self, node):
      params = self._default_function_params(node)
      if node.get_attr("data_format") == "channels_first":
          raise Exception("channels_first not supported for Quartus")
      params["data_format"] = "cl"
      return self.templates[node.class_name].format(**params)
  
file_path: hls4ml/hls4ml/backends/quartus/passes/pooling_templates.py
imports: from hls4ml.backends.template import FunctionCallTemplate, LayerConfigTemplate
  from hls4ml.model.layers import GlobalPooling1D, GlobalPooling2D, Pooling1D, Pooling2D
label_desc: Use image node_id 2 for calling the PoolingFunctionTemplate obj's underlying member method code with example usage: obj.format(node) and returns: self