def _serialize_current_pytest_mlmodel(mlmodel) -> None:
    """
    Usually pytest test name is of format file::class::test_function[param0-param1] (call)...
    Assume each test produces only one Core ML model,
    then file::class::test_function[param0-param1] is enough to determine unique name
        {_COREMLTOOLS_DEBUG_SAVE_MLMODEL_DIRECTORY}/file/class/test_function/param0/param1/model.mlpackage
    """
    mlpackage_path = _create_current_pytest_serialization_path() + "model.mlpackage"
    Path(mlpackage_path).mkdir(parents=True, exist_ok=True)
    mlmodel.save(mlpackage_path)

    Usually pytest test name is of format file::class::test_function[param0-param1] (call)...
    Assume each test produces only one Core ML model,
    then file::class::test_function[param0-param1] is enough to determine unique name
        {_COREMLTOOLS_DEBUG_SAVE_MLMODEL_DIRECTORY}/file/class/test_function/param0/param1/model.mlpackage
    
coremltools/converters/mil/testing_utils.py