code: def split(path):
      
      if path == '/':
          return ('/', None)
  
      parent, child = path.rsplit('/', 1)
  
      if parent == '':
          parent = '/'
  
      return (parent, child)
docs: splits path into parent, child