code: def test_up_sampling_numeric(self, data_format):
      img = np.reshape(np.arange(0, 4), (1, 2, 2, 1)).astype(np.float32)
      if data_format == "channels_first":
          img = img.transpose(0, 3, 1, 2)
      out = layers.Resizing(
          height=4,
          width=4,
          interpolation="nearest",
          data_format=data_format,
      )(img)
      ref_out = (
          np.asarray(
              [[0, 0, 1, 1], [0, 0, 1, 1], [2, 2, 3, 3], [2, 2, 3, 3]]
          )
          .astype(np.float32)
          .reshape((1, 4, 4, 1))
      )
      if data_format == "channels_first":
          ref_out = ref_out.transpose(0, 3, 1, 2)
      self.assertAllClose(ref_out, out)
  
file_path: keras/keras/layers/preprocessing/resizing_test.py
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from tensorflow import data
  from keras import Sequential
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 4 for calling the ResizingTest obj's underlying member method code with example usage: obj.test_up_sampling_numeric(data_format) without return types