class_docstr: UpsampleConvLayer
  Upsamples the input and then does a convolution. This method gives better results
  compared to ConvTranspose2d.
  ref: http://distill.pub/2016/deconv-checkerboard/
class_docstr_tok: ["UpsampleConvLayer","Upsamples","the","input","and","then","does","a","convolution",".","This","method","gives","better","results","compared","to","ConvTranspose2d",".","ref",":","http",":","\/\/distill.pub\/2016\/deconv-checkerboard\/"]
code: def forward(self, x):
      x_in = x
      if self.upsample:
          x_in = self.upsample_layer(x_in)
      out = self.reflection_pad(x_in)
      out = self.conv2d(out)
      return out
  
imports: import argparse
  import os
  import sys
  import re
  import json
  import traceback
  from PIL import Image
  import torch
  from torchvision import transforms
  from azureml.core.model import Model
label_desc: Use image node_id 2 for calling the UpsampleConvLayer obj's underlying member method code with example usage: obj.forward(x) and returns: out