class_docstr: Gathers slices from a data tensor, based on an indices tensors (``tf.gather`` in Layer form).
  
  Args:
      axis (int or Tensor): the data axis to gather from.
      batch_dims (int): the number of batch dimensions in the data and indices.
class_docstr_tok: ["Gathers","slices","from","a","data","tensor",",","based","on","an","indices","tensors","(","``","tf.gather","``","in","Layer","form",")",".","Args",":","axis","(","int","or","Tensor",")",":","the","data","axis","to","gather","from",".","batch_dims","(","int",")",":","the","number","of","batch","dimensions","in","the","data","and","indices","."]
code: def compute_output_shape(self, input_shapes):
      data_shape, indices_shape = input_shapes
      axis = self._batch_dims if self._axis is None else self._axis
      # per https://www.tensorflow.org/api_docs/python/tf/gather
      return (
          data_shape[:axis]
          + indices_shape[self._batch_dims :]
          + data_shape[axis + 1 :]
      )
  
file_path: stellargraph/stellargraph/layer/misc.py
imports: import tensorflow
  from tensorflow.keras.layers import Layer
  from tensorflow.keras import backend
  import warnings
label_desc: Use image node_id 3 for calling the GatherIndices obj's underlying member method code with example usage: obj.compute_output_shape(input_shapes) and returns: unknown