code: def shape_compatible(shape1, shape2):
      if len(shape1) != len(shape2):
          return False
      # TODO: If they can be the same after passing through any layer,
      #  they are compatible. e.g. (32, 32, 3), (16, 16, 2) are compatible
      return shape1[:-1] == shape2[:-1]
  
imports: from typing import Optional
  import tensorflow
  from tensorflow import nest
  from tensorflow.keras import layers
  from autokeras.engine import block
  from autokeras.utils import layer_utils
  from autokeras.utils import utils
label_desc: Use image node_id 1 for calling a global function with example usage: shape_compatible(shape1, shape2) and returns: unknown, False