code: def test_basics(self):
      out = backend.compute_output_spec(
          example_fn, backend.KerasTensor((2, 3))
      )
      self.assertIsInstance(out, backend.KerasTensor)
      self.assertEqual(out.shape, (2, 3, 2))
  
      out = backend.compute_output_spec(
          example_fn, backend.KerasTensor((None, 3))
      )
      self.assertIsInstance(out, backend.KerasTensor)
      self.assertEqual(out.shape, (None, 3, 2))
  
      out = backend.compute_output_spec(
          example_fn, backend.KerasTensor((2, None))
      )
      self.assertIsInstance(out, backend.KerasTensor)
      self.assertEqual(out.shape, (2, None, 2))
  
file_path: keras/keras/backend/common/compute_output_spec_test.py
imports: import pytest
  from keras import backend
  from keras import testing
label_desc: Use image node_id 1 for calling the ComputeOutputSpecTest obj's underlying member method code with example usage: obj.test_basics() without return types