code: def _extant(path):
      """
      Replace path with None if it doesn't exist.
      """
      return path if os.path.exists(path) else None
  
imports: import os
  import re
  import sys
  import sysconfig
  import pathlib
  from .errors import DistutilsPlatformError
  from .None import py39compat
  from ._functools import pass_none
label_desc: Use image node_id 6 for calling a global function with example usage: _extant(path) and returns: unknown