code: def compute_output_shape(self, input_shape):
      if self.data_mode == "single":
          return (1,) + input_shape[-1:]
      elif self.data_mode == "batch":
          return input_shape[:-2] + input_shape[-1:]
      else:
          # Input shape is a list of shapes for X and I
          return input_shape[0]
  
imports: import tensorflow
  from tensorflow.keras import backend
  from tensorflow.keras import constraints, initializers, regularizers
  from tensorflow.keras.layers import Dense, Layer
  from spektral.layers import ops
label_desc: Use image node_id 4 for calling the GlobalPool obj's underlying member method code with example usage: obj.compute_output_shape(input_shape) and returns: unknown, unknown, input_shape