code: def split_all_ext(path):
      path, basename = os.path.split(path)
      pos = basename.find(".")
      if pos == -1:
          return os.path.join(path, basename), ""
      return os.path.join(path, basename[:pos]), basename[pos:]
  
imports: import os
label_desc: Use image node_id 3 for calling a global function with example usage: split_all_ext(path) and returns: os,  basename, os,  str