class_docstr: Test APIs visible to users
class_docstr_tok: ["Test","APIs","visible","to","users"]
code: def test_top_level(self):
      # coremltools.optimize.torch.*
      expected = [
          "base_model_optimizer",
          "optimization_config",
          "palettization",
          "pruning",
          "quantization",
      ]
      visible_modules = _get_visible_items(coremltools.optimize.torch)
      _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 1 for calling the TestApiVisibilities obj's underlying member method code with example usage: obj.test_top_level() without return types