class_docstr: Keras test
class_docstr_tok: ["Keras","test"]
code: def test_forward_upsample(self, keras_mod, interpolation="nearest"):
      data = keras_mod.layers.Input(shape=(32, 32, 3))
      x = keras_mod.layers.UpSampling2D(
          size=(3, 3), interpolation=interpolation
      )(data)
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model)
      # Height and width are not equal for the attribute size
      data = keras_mod.layers.Input(shape=(2, 1, 3))
      x = keras_mod.layers.UpSampling2D(
          size=(1, 2), interpolation=interpolation
      )(data)
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model)
  
imports: from packaging import version
  import numpy
  from tensorflow import keras
  import keras
  import pytest
  import tvm
  from tvm import relay
  from tvm.contrib import graph_executor
  import tvm.testing
label_desc: Use image node_id 14 for calling the TestKeras obj's underlying member method code with example usage: obj.test_forward_upsample(keras_mod, interpolation) without return types