code: def test_reshape_with_dynamic_batch_size_and_minus_one(self):
      input = KerasTensor((None, 6, 4))
      layer = layers.Reshape((-1, 8))
      layer.build(input.shape)
      reshaped = backend.compute_output_spec(layer.__call__, input)
      self.assertEqual(reshaped.shape, (None, 3, 8))
  
file_path: keras/keras/layers/reshaping/reshape_test.py
imports: import pytest
  from absl.testing import parameterized
  from keras import backend
  from keras import layers
  from keras import testing
  from keras.backend.common.keras_tensor import KerasTensor
label_desc: Use image node_id 3 for calling the ReshapeTest obj's underlying member method code with example usage: obj.test_reshape_with_dynamic_batch_size_and_minus_one() without return types