code: def assert_not_islink(path, msg=None):
      """Assert that path exists but is not a symlink."""
      path = _strpath(path)
      st = _stat_for_assert(path, False, msg)
      if stat.S_ISLNK(st.st_mode):
          if msg is None:
              msg = "Path is a symlink: %r" % path
          raise AssertionError(msg)
  
file_path: catboost/contrib/python/testpath/py2/testpath/asserts.py
imports: import os
  import stat
label_desc: Use image node_id 9 for calling a global function with example usage: assert_not_islink(path, msg) without return types