class_docstr: https://arxiv.org/abs/1707.05847
code: def forward(
      self, x: Tensor, output_size: Optional[List[int]] = None
  ) -> Tensor:  # skipcq: PYL-W0221
      x = self.upsample(x)
      n, c, h, w = x.size()
      x = x.reshape(n, self.out_channels, self.n, h, w).mean(2)
      return x
  
imports: from enum import Enum
  from math import hypot
  from typing import Optional, List, Tuple, Union, Type
  import torch
  from torch import nn, Tensor
label_desc: Use image node_id 2 for calling the BilinearAdditiveUpsample2d obj's underlying member method code with example usage: obj.forward(x, output_size) and returns: x