def METHOD_NAME(dataSources, index, num_path):
    response = _get_stub(dataSources._server).List(dataSources._internal_obj)
    if dataSources._server.meet_version("4.0"):
        num_path.set(len(response.paths[response.keys[index]].paths))
        return response.keys[index]
    else :
        keys = list(response.paths.keys())
        num_path.set(len(response.paths[keys[index]].paths))
        return keys[index]