class_docstr: This class is testing the api reference code in
  https://coremltools.readme.io/v7.0/docs/optimizetorch-api-overview
code: def get_fine_grain_config(self):
      config_dict = {
          "module_type_configs": {
              "Linear": {
                  "scheduler": {
                      "update_steps": [100, 200, 300, 500],
                  },
                  "n_m_ratio": [3, 4],
              },
              "Conv2d": {
                  "scheduler": {
                      "update_steps": [100, 200, 300, 500],
                  },
                  "target_sparsity": 0.5,
                  "block_size": 2,
              },
          },
          "module_name_configs": {
              "module2.conv1": {
                  "scheduler": {
                      "update_steps": [100, 200, 300, 500],
                  },
                  "target_sparsity": 0.75,
              },
              "module2.linear": None,
          },
      }
      return _TestConfigurationFromDictFromYaml.get_yaml(config_dict)
  
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 2 for calling the TestOptimizeTorchAPIOverview obj's underlying member method code with example usage: obj.get_fine_grain_config() and returns: _TestConfigurationFromDictFromYaml