def make_state(self) -> MLState:
        """
        Returns a new state object, which can be passed to the ``predict`` method.

        Returns
        _______
        state: MLState
            Holds state for an MLModel.

        State functionality is only supported on macOS 15+.

        Examples
        --------
        .. sourcecode:: python

            state = model.make_state()
            predictions = model.predict(x, state)

        See Also
        --------
        predict
        """
        if not _is_macos() or _macos_version() < (15, 0):
            raise Exception("State functionality is only supported on macOS 15+")
        if self.__proxy__ is None:
            raise Exception("This model was not loaded with the Core ML Framework. Cannot get state.")

        return MLState(self.__proxy__.newState())

        Returns a new state object, which can be passed to the ``predict`` method.

        Returns
        _______
        state: MLState
            Holds state for an MLModel.

        State functionality is only supported on macOS 15+.

        Examples
        --------
        .. sourcecode:: python

            state = model.make_state()
            predictions = model.predict(x, state)

        See Also
        --------
        predict
        
coremltools/models/model.py