def add_get_shape(self, name, input_name, output_name):
        """
        Add a get_shape layer to the model.
        Refer to the ``GetShapeLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_reshape, add_reshape_like, add_reshape_static, add_reshape_dynamic
        """

        spec_layer = self._add_generic_layer(name, [input_name], [output_name])
        spec_layer.getShape.MergeFromString(b"")
        self.rank_dict[output_name] = 1
        return spec_layer

        Add a get_shape layer to the model.
        Refer to the ``GetShapeLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_reshape, add_reshape_like, add_reshape_static, add_reshape_dynamic
        
coremltools/models/neural_network/builder.py