class_docstr: Test APIs visible to users
class_docstr_tok: ["Test","APIs","visible","to","users"]
code: def test_quantization_module(self):
      # coremltools.optimize.torch.quantization.*
      expected = [
          "LinearQuantizer",
          "LinearQuantizerConfig",
          "ModuleLinearQuantizerConfig",
          "ObserverType",
          "QuantizationScheme",
          "quantizer",
          "quantization_config",
          "modules",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.quantization
      )
      _check_visible_modules(visible_modules, expected)
      # coremltools.optimize.torch.quantization.LinearQuantizer.*
      expected = [
          "finalize",
          "prepare",
          "step",
          "report",
          "supported_modules",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.quantization.LinearQuantizer
      )
      _check_visible_modules(visible_modules, expected)
      # coremltools.optimize.torch.quantization.quantizer.*
      expected = [
          "Quantizer",
          "LinearQuantizer",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.quantization.quantizer
      )
      _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 6 for calling the TestApiVisibilities obj's underlying member method code with example usage: obj.test_quantization_module() without return types