class_docstr: Generates tcode for im2col step of 1D/2d convolution
code: def _generate_im2col_1d(self, node):
      code_str = (
          node.model.config.backend.generate_conv1d_line_buffer_fn(
              node.get_attr("index"),
              node.get_attr("n_partitions"),
              node.get_input_variable().shape[0],
              node.get_input_variable().shape[1],
              kernel=node.get_attr("filt_width"),
              stride=node.get_attr("stride_width"),
              pad=(
                  node.get_attr("pad_left"),
                  node.get_attr("pad_right"),
              ),
          )
      )
  
      node.set_attr("line_buffer_codegen", Source(code_str))
  
file_path: hls4ml/hls4ml/backends/fpga/passes/codegen.py
imports: from hls4ml.model.layers import Conv1D, Conv2D
  from hls4ml.model.optimizer import OptimizerPass
  from hls4ml.model.types import Source
label_desc: Use image node_id 3 for calling the GenerateConvIm2col obj's underlying member method code with example usage: obj._generate_im2col_1d(node) without return types