def get_file_samples(file_ids):
assert isinstance(file_ids, Iterable)<EOL>payload = {<EOL>"<STR_LIT>":json.dumps({<EOL>"<STR_LIT>":"<STR_LIT>",<EOL>"<STR_LIT:content>":{<EOL>"<STR_LIT>":"<STR_LIT>",<EOL>"<STR_LIT:value>": list(file_ids),<EOL>}<EOL>}),<EOL>"<STR_LIT>":"<STR_LIT>",<EOL>"<STR_LIT:size>":<NUM_LIT><EOL>}<EOL>r = requests.post('<STR_LIT>', data=payload)<EOL>j = json.loads(r.content.decode('<STR_LIT:utf-8>'))<EOL>file_samples = OrderedDict()<EOL>for hit in j['<STR_LIT:data>']['<STR_LIT>']:<EOL><INDENT>file_id = hit['<STR_LIT>']<EOL>assert len(hit['<STR_LIT>']) == <NUM_LIT:1><EOL>case = hit['<STR_LIT>'][<NUM_LIT:0>]<EOL>assert len(case['<STR_LIT>']) == <NUM_LIT:1><EOL>sample = case['<STR_LIT>'][<NUM_LIT:0>]<EOL>sample_barcode = sample['<STR_LIT>']<EOL>file_samples[file_id] = sample_barcode<EOL><DEDENT>df = pd.DataFrame.from_dict(file_samples, orient='<STR_LIT:index>')<EOL>df = df.reset_index()<EOL>df.columns = ['<STR_LIT>', '<STR_LIT>']<EOL>return df<EOL>
Get TCGA associated sample barcodes for a list of file IDs. 

    Params
    ------
    file_ids : Iterable
        The file IDs.

    Returns
    -------
    `pandas.Series`
        Series containing file IDs as index and corresponding sample barcodes.