class_docstr: Test APIs visible to users
class_docstr_tok: ["Test","APIs","visible","to","users"]
code: def test_palettization_module(self):
      # coremltools.optimize.torch.palettization.*
      expected = [
          "FakePalettize",
          "DKMPalettizer",
          "DKMPalettizerConfig",
          "ModuleDKMPalettizerConfig",
          "palettization_config",
          "fake_palettize",
          "palettizer",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.palettization
      )
      _check_visible_modules(visible_modules, expected)
      # coremltools.optimize.torch.palettization.palettizer.*
      expected = [
          "Palettizer",
          "DKMPalettizer",
      ]
      visible_modules = _get_visible_items(
          coremltools.optimize.torch.palettization.palettizer
      )
      _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 4 for calling the TestApiVisibilities obj's underlying member method code with example usage: obj.test_palettization_module() without return types