code: def format(self, node):
      params = self._default_function_params(node)
      if node.get_attr("algorithm") != "nearest":
          raise Exception("Currently only supporting resize_nearest")
      params["algorithm"] = node.get_attr("algorithm")
  
      return self.template.format(**params)
  
imports: from hls4ml.backends.template import FunctionCallTemplate, LayerConfigTemplate
  from hls4ml.model.layers import Resize, Transpose, ZeroPadding1D, ZeroPadding2D
label_desc: Use image node_id 2 for calling the ResizeFunctionTemplate obj's underlying member method code with example usage: obj.format(node) and returns: self