def add_loop_break(self, name):
        """
        Add a loop_break layer to the model that terminates the loop that
        contains this layer. Must reside in the ``bodyNetwork`` of the loop layer.
        Refer to the ``LoopBreakLayerParams`` message in the specification (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.

        See Also
        --------
        add_loop, add_loop_continue, add_branch
        """

        spec_layer = self.nn_spec.layers.add()
        spec_layer.name = name
        spec_layer.loopBreak.MergeFromString(b"")
        return spec_layer

        Add a loop_break layer to the model that terminates the loop that
        contains this layer. Must reside in the ``bodyNetwork`` of the loop layer.
        Refer to the ``LoopBreakLayerParams`` message in the specification (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.

        See Also
        --------
        add_loop, add_loop_continue, add_branch
        
coremltools/models/neural_network/builder.py