def METHOD_NAME(file_list,package=None,is_cuda=False):
    incs={}
    pack_incs={}
    if is_cuda:
        comm= "gcc -fpreprocessed -dD -E "
    else:
        comm= "nvcc --compiler-options  -fpreprocessed -dD -E "
    for f in file_list:
        comm=comm+f+" "
    comm=comm+" | grep \"#include\""
    c_rt,c_out,c_err = run_command(comm)
    for l in c_out.split():
        inc = l.strip().split()[-1][1:-1]
        if '/' in inc:
            incs['/'.join(inc.split('/')[0:2])]=1
            if package is not None and package in inc and "interface" in inc:
                pack_incs[os.path.join('/'.join(file_list[0].split('/')[0:-4]),inc)]=1
    if package is None:
        return list(incs.keys())
    else:
        return list(incs.keys()),list(pack_incs.keys())