code: def test_rescaling_dtypes(self):
      # int scale
      self.run_layer_test(
          layers.Rescaling,
          init_kwargs={"scale": 2, "offset": 0.5},
          input_shape=(2, 3),
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=True,
      )
      # int offset
      self.run_layer_test(
          layers.Rescaling,
          init_kwargs={"scale": 1.0, "offset": 2},
          input_shape=(2, 3),
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=True,
      )
      # int inputs
      self.run_layer_test(
          layers.Rescaling,
          init_kwargs={"scale": 1.0 / 255, "offset": 0.5},
          input_shape=(2, 3),
          input_dtype="int16",
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=True,
      )
  
file_path: keras/keras/layers/preprocessing/rescaling_test.py
imports: import numpy
  import pytest
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 2 for calling the RescalingTest obj's underlying member method code with example usage: obj.test_rescaling_dtypes() without return types