code: def test_get_shared_lib_extension(self):
      import sys
  
      ext = get_shared_lib_extension(is_python_ext=False)
      if sys.platform.startswith("linux"):
          assert_equal(ext, ".so")
      elif sys.platform.startswith("gnukfreebsd"):
          assert_equal(ext, ".so")
      elif sys.platform.startswith("darwin"):
          assert_equal(ext, ".dylib")
      elif sys.platform.startswith("win"):
          assert_equal(ext, ".dll")
      # just check for no crash
      assert_(get_shared_lib_extension(is_python_ext=True))
  
file_path: numpy/numpy/distutils/tests/test_misc_util.py
imports: from os.path import join, sep, dirname
  from numpy.distutils.misc_util import appendpath, minrelpath, gpaths, get_shared_lib_extension, get_info
  from numpy.testing import assert_, assert_equal
label_desc: Use image node_id 1 for calling the TestSharedExtension obj's underlying member method code with example usage: obj.test_get_shared_lib_extension() without return types