code: def test_upsampling_1d_correctness(self):
      self.assertAllClose(
          layers.UpSampling1D(size=2)(np.arange(12).reshape((2, 2, 3))),
          np.array(
              [
                  [
                      [0.0, 1.0, 2.0],
                      [0.0, 1.0, 2.0],
                      [3.0, 4.0, 5.0],
                      [3.0, 4.0, 5.0],
                  ],
                  [
                      [6.0, 7.0, 8.0],
                      [6.0, 7.0, 8.0],
                      [9.0, 10.0, 11.0],
                      [9.0, 10.0, 11.0],
                  ],
              ]
          ),
      )
  
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 2 for calling the UpSamplingTest obj's underlying member method code with example usage: obj.test_upsampling_1d_correctness() without return types