class_docstr: Test public coremltools API visibilities.
code: def test_top_level(self):
      expected = [
          "ClassifierConfig",
          "EnumeratedShapes",
          "ImageType",
          "RangeDim",
          "SPECIFICATION_VERSION",
          "Shape",
          "TensorType",
          "convert",
          "converters",
          "libcoremlpython",
          "models",
          "proto",
          "target",
          "utils",
          "version",
          "test",
      ]
      if not ct.utils._is_macos():
          expected.remove("libcoremlpython")
      _check_visible_modules(_get_visible_items(ct), expected)
  
imports: import coremltools
  import pytest
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