def METHOD_NAME(lib_name, backend=""):
    for lib_path in glob.glob(
        os.path.join(dir_, lib_name, backend, get_lib_pattern(lib_name))
    ):
        lib_file_name = os.path.basename(lib_path)
        dst_dir_ = os.path.join(CURRENT_DIR, "dgl", lib_name, backend)
        os.makedirs(
            dst_dir_,
            exist_ok=True,
        )
        shutil.copy(
            os.path.join(dir_, lib_name, backend, lib_file_name),
            dst_dir_,
        )
        fo.write(f"include dgl/{lib_name}/{backend}/{lib_file_name}\n")