code: def test_upsampling_1d_with_dynamic_shape(self):
      y = KerasTensor([2, None, 3])
      self.assertEqual(
          layers.UpSampling1D(size=2)(y).shape, (2, None, 3)
      )
      self.assertEqual(
          layers.UpSampling1D(size=4)(y).shape, (2, None, 3)
      )
  
      z = KerasTensor([2, 3, None])
      self.assertEqual(
          layers.UpSampling1D(size=2)(z).shape, (2, 6, None)
      )
      self.assertEqual(
          layers.UpSampling1D(size=4)(z).shape, (2, 12, None)
      )
  
file_path: keras/keras/layers/reshaping/up_sampling1d_test.py
imports: import numpy
  import pytest
  from keras import layers
  from keras import testing
  from keras.backend.common.keras_tensor import KerasTensor
label_desc: Use image node_id 5 for calling the UpSamplingTest obj's underlying member method code with example usage: obj.test_upsampling_1d_with_dynamic_shape() without return types