def parse_path(path):
    """Parse the path returned from `dictdiffer`."""
    if isinstance(path, str):
        path = path.split('.')

    path = [str(x) if isinstance(x, int) else x for x in path]

    return path[0], '.'.join(path[1::])