class_docstr: Generates tcode for im2col step of 1D/2d convolution
code: def transform(self, model, node):
      node_class = node.__class__.__name__
      if "1D" in node_class:
          self._generate_im2col_1d(node)
      elif "2D" in node_class:
          self._generate_im2col_2d(node)
      else:
          raise Exception(
              f"Cannot generate instructions for node {node.name} ({node_class})"
          )
  
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 2 for calling the GenerateConvIm2col obj's underlying member method code with example usage: obj.transform(model, node) without return types