code: def splitext(p):
      p = os.fspath(p)
      if isinstance(p, bytes):
          sep = b"/"
          extsep = b"."
      else:
          sep = "/"
          extsep = "."
      return genericpath._splitext(p, sep, None, extsep)
  
imports: import os
  import sys
  import stat
  import genericpath
  from genericpath import *
label_desc: Use image node_id 6 for calling a global function with example usage: splitext(p) and returns: genericpath