code: def canon_path(native_path: str | os.PathLike[str], /) -> str:
      """Return path in OS-independent form"""
      return os.fspath(native_path).replace(path.sep, SEP)
  
imports: from __future__ import annotations
  import contextlib
  import filecmp
  import os
  import re
  import shutil
  import sys
  import unicodedata
  from io import StringIO
  from os import path
  from typing import TYPE_CHECKING, Any
  from sphinx.deprecation import _deprecation_warning
label_desc: Use image node_id 2 for calling a global function with example usage: canon_path() and returns: os