def write_replicates_split_datasets(component_inchikey_dict, replicates_inchikey_dict, output_dir, max_atoms, max_mass_spec_peak_loc):
    'Write replicates val/test set TFRecords from replicates sdf file.'
    for component_kwarg in [ds_constants.REPLICATES_VALIDATION_BASENAME, ds_constants.REPLICATES_TEST_BASENAME]:
        component_replicates_filename = (component_kwarg + FROM_REPLICATES_FILENAME_MODIFIER)
        write_all_dataset_files(replicates_inchikey_dict, component_inchikey_dict[component_kwarg], component_replicates_filename, output_dir, max_atoms, max_mass_spec_peak_loc)
Write replicates val/test set TFRecords from replicates sdf file.
def write_replicates_split_datasets(component_inchikey_dict, replicates_inchikey_dict, output_dir, max_atoms, max_mass_spec_peak_loc):
    
    for component_kwarg in [ds_constants.REPLICATES_VALIDATION_BASENAME, ds_constants.REPLICATES_TEST_BASENAME]:
        component_replicates_filename = (component_kwarg + FROM_REPLICATES_FILENAME_MODIFIER)
        write_all_dataset_files(replicates_inchikey_dict, component_inchikey_dict[component_kwarg], component_replicates_filename, output_dir, max_atoms, max_mass_spec_peak_loc)