def add_broadcast_to_like(self, name, input_names, output_name):
        """
        Add a broadcast_to_like layer to the model that broadcasts a tensor
        to a compatible shape.
        Refer to the ``BroadcastToLikeLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_names: list of str
            The input blob names of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_broadcast_to_static, add_broadcast_to_dynamic
        """

        spec_layer = self._add_generic_layer(name, input_names, [output_name])
        spec_layer.broadcastToLike.MergeFromString(b"")

        if len(input_names) != 2:
            raise ValueError("BroadcastToLikeLayer must have two inputs")

        self.rank_dict[output_name] = self._get_rank(input_names[1])
        return spec_layer

        Add a broadcast_to_like layer to the model that broadcasts a tensor
        to a compatible shape.
        Refer to the ``BroadcastToLikeLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_names: list of str
            The input blob names of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_broadcast_to_static, add_broadcast_to_dynamic
        
coremltools/models/neural_network/builder.py