docs: def setup_pcap_inputs(self, input_data):
          ''' Write the PCAPs to disk for Bro to process and return the pcap filenames '''
  
          # Setup the pcap in the input data for processing by Bro. The input
          # may be either an individual sample or a sample set.
          file_list = []
          if 'sample' in input_data:
              raw_bytes = input_data['sample']['raw_bytes']
              filename = os.path.basename(input_data['sample']['filename'])
              file_list.append({'filename': filename, 'bytes': raw_bytes})
          else:
              for md5 in input_data['sample_set']['md5_list']:
                  sample = self.workbench.get_sample(md5)['sample']
                  raw_bytes = sample['raw_bytes']
                  filename = os.path.basename(sample['filename'])
                  file_list.append({'filename': filename, 'bytes': raw_bytes})
  
          # Write the pcaps to disk and keep the filenames for Bro to process
          for file_info in file_list:
              with open(file_info['filename'], 'wb') as pcap_file:
                  pcap_file.write(file_info['bytes'])
  
          # Return filenames
          return [file_info['filename'] for file_info in file_list]