code: def _check_visible_modules(actual: List[str], expected: List[str]):
      assert set(actual) == set(
          expected
      ), "API mis-matched. Got %s, expected %s" % (
          actual,
          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 2 for calling a global function with example usage: _check_visible_modules(actual, expected) without return types