def add_fill_static(self, name, output_name, output_shape, value=0.0):
        """
        Add a fill_static layer to the model that outputs a tensor filled
        with a scalar value given shape as parameter.
        Refer to the ``FillStaticLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        output_name: str
            The output blob name of this layer.
        output_shape: list of int or tuple of int
            The target shape of the output tensor.
        value: float, optional
            A scalar value for the fill operation, default 0.

        See Also
        --------
        add_fill_like, add_fill_static
        """

        spec_layer = self._add_generic_layer(name, [], [output_name])
        spec_layer_params = spec_layer.fillStatic
        spec_layer_params.value = value
        spec_layer_params.targetShape.extend(output_shape)
        self.rank_dict[output_name] = len(output_shape)
        return spec_layer

        Add a fill_static layer to the model that outputs a tensor filled
        with a scalar value given shape as parameter.
        Refer to the ``FillStaticLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        output_name: str
            The output blob name of this layer.
        output_shape: list of int or tuple of int
            The target shape of the output tensor.
        value: float, optional
            A scalar value for the fill operation, default 0.

        See Also
        --------
        add_fill_like, add_fill_static
        
coremltools/models/neural_network/builder.py