code: def upscale(inputs, f, method=tf.image.ResizeMethod.NEAREST_NEIGHBOR):
    
    height, width = shape_list(inputs)[1:3]  # pylint: disable=unbalanced-tuple-unpacking
    return tf.image.resize_images(inputs, (height * f, width * f), method)
docs: Upscaling the image by a factor of f.