def METHOD_NAME(classyfire_file='/global/homes/b/bpb/Downloads/classyfire_all_compounds.csv.gz',gmt_file = '/Users/bpb/Downloads/classyfire_gmt_file.gmt'):
    cf = pd.read_csv(classyfire_file)#,usecols=['inchi_key','class_name'])
    cf_cols = [c for c in cf.columns if '_id' in c] + ['inchi_key']
    cf = cf[cf_cols]
    cf.fillna('',inplace=True)
    gmt = pd.concat([cf.melt(id_vars=[col],value_vars=['inchi_key']).rename(columns={col:'term'}) for col in cf_cols[:-1]],axis=0)
    gmt.drop(columns=['variable'],inplace=True)
    gmt.dropna(subset=['term'],inplace=True)
    gmt = gmt.groupby('term')['value'].apply(list).reset_index(name='compounds')
    gmt['dummy'] = ''
    gmt = gmt[['term','dummy','compounds']]
    exploded_columns = pd.DataFrame(gmt['compounds'].values.tolist())
    gmt.drop(columns=['compounds'],inplace=True)
    gmt = pd.concat([gmt,exploded_columns],axis=1)
    # gmt.head()
    gmt.to_csv(gmt_file,sep='\t',index=None,header=False)
    with open(gmt_file,'r') as fid:
        gmt = fid.read()
    gmt = [g.strip() for g in gmt.split('\n')]
    gmt = '\n'.join(gmt)
    with open(gmt_file,'w') as fid:
        fid.write('%s'%gmt)