def load_from_path(cls, compiled_model_path: str) -> "MLModelStructure":
        """
        Loads the structure of a compiled model.

        The path must be the location of the ``mlmodelc`` directory.

        Parameters
        ----------
        compiled_model_path (str): The path to the compiled model.

        Returns
        -------
        MLModelStructure
            An instance of MLModelStructure.

        Examples
        --------
        .. sourcecode:: python
        
            model_structure = coremltools.models.compute_plan.MLModelStructure.load_from_path(
                model.get_compiled_path()
            )

            if model_structure.neuralNetwork is not None:
                # Examine Neural network model.
                pass
            elif model_structure.program is not None:
                # Examine ML Program model.
                pass
            elif model_structure.pipeline is not None:
                # Examine Pipeline model.
                pass
            else:
                # The model type is something else.
                pass
        
        """

        if _MLModelProxy is None:
            raise ValueError("MLModelStructure is not supported.")

        return _MLModelProxy.get_model_structure(compiled_model_path)

        Loads the structure of a compiled model.

        The path must be the location of the ``mlmodelc`` directory.

        Parameters
        ----------
        compiled_model_path (str): The path to the compiled model.

        Returns
        -------
        MLModelStructure
            An instance of MLModelStructure.

        Examples
        --------
        .. sourcecode:: python
        
            model_structure = coremltools.models.compute_plan.MLModelStructure.load_from_path(
                model.get_compiled_path()
            )

            if model_structure.neuralNetwork is not None:
                # Examine Neural network model.
                pass
            elif model_structure.program is not None:
                # Examine ML Program model.
                pass
            elif model_structure.pipeline is not None:
                # Examine Pipeline model.
                pass
            else:
                # The model type is something else.
                pass
        
        
coremltools/models/compute_plan.py