code: def __init__(
      self,
      channels=None,
      out_channels=None,
      use_conv=False,
      fir_kernel=(1, 3, 3, 1),
  ):
      super().__init__()
      out_channels = out_channels if out_channels else channels
      if use_conv:
          self.Conv2d_0 = nn.Conv2D(
              channels, out_channels, kernel_size=3, stride=1, padding=1
          )
      self.use_conv = use_conv
      self.fir_kernel = fir_kernel
      self.out_channels = out_channels
  
imports: from functools import partial
  import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new FirUpsample2D object from inherited base classes: nn with example: obj = FirUpsample2D(channels, out_channels, use_conv, fir_kernel)