class_docstr: Test APIs visible to users
class_docstr_tok: ["Test","APIs","visible","to","users"]
code: def test_pruning_module(self):
      # coremltools.optimize.torch.pruning.*
      expected = [
          "ConstantSparsityScheduler",
          "MagnitudePruner",
          "MagnitudePrunerConfig",
          "ModuleMagnitudePrunerConfig",
          "PolynomialDecayScheduler",
          "magnitude_pruner",
          "pruning_scheduler",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.pruning
      )
      _check_visible_modules(visible_modules, expected)
  
file_path: coremltools/coremltools/test/optimize/torch/test_api_surface.py
imports: from typing import List
  import coremltools.optimize.torch
label_desc: Use image node_id 5 for calling the TestApiVisibilities obj's underlying member method code with example usage: obj.test_pruning_module() without return types