def from_memory(
        cls,
        spec_data: bytes,
        blob_mapping: _Dict[str, bytes] = {},
    ) -> "MLModelAsset":
        """
        Create an MLModelAsset instance from in-memory data.

        Parameters
        ----------
        spec_data : bytes
            The specification data of the model.

        blob_mapping : Dict[str, bytes])
            A dictionary with blob path as the key and blob data as the value.

        Returns
        -------
        MLModelAsset
            An instance of MLModelAsset created from the provided memory data.
        """
        return _MLModelProxy.create_model_asset_from_memory(spec_data, blob_mapping)

        Create an MLModelAsset instance from in-memory data.

        Parameters
        ----------
        spec_data : bytes
            The specification data of the model.

        blob_mapping : Dict[str, bytes])
            A dictionary with blob path as the key and blob data as the value.

        Returns
        -------
        MLModelAsset
            An instance of MLModelAsset created from the provided memory data.
        
coremltools/models/model.py