code: def test_down_sampling_numeric(self, data_format):
      img = np.reshape(np.arange(0, 16), (1, 4, 4, 1)).astype(
          np.float32
      )
      if data_format == "channels_first":
          img = img.transpose(0, 3, 1, 2)
      out = layers.Resizing(
          height=2,
          width=2,
          interpolation="nearest",
          data_format=data_format,
      )(img)
      ref_out = (
          np.asarray([[5, 7], [13, 15]])
          .astype(np.float32)
          .reshape((1, 2, 2, 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 3 for calling the ResizingTest obj's underlying member method code with example usage: obj.test_down_sampling_numeric(data_format) without return types