class_docstr: This class is testing examples in https://coremltools.readme.io/v7.0/docs/converting-compressed-source-models
code: def test_smoke_convert_compressed_source_model_pruning(self):
      import coremltools as ct
  
      model_with_sparse_weights = ct.convert(
          get_test_program(),
          pass_pipeline=ct.PassPipeline.DEFAULT_PRUNING,
          minimum_deployment_target=ct.target.iOS17,
      )
      assert model_with_sparse_weights is not None
  
imports: import tempfile
  from coremltools.converters.mil.testing_utils import get_op_types_in_program
  from coremltools.test.optimize.coreml.test_passes import TestCompressionPasses
  from coremltools.test.optimize.coreml.test_passes import TestConfigurationFromDictFromYaml
label_desc: Use image node_id 1 for calling the TestConvertingCompressedSourceModels obj's underlying member method code with example usage: obj.test_smoke_convert_compressed_source_model_pruning() without return types