def generate_hdf5_dataset_name(lname, index):
    """
    Generate data set names consistent with names used by Keras models

    Parameters
    ----------
    lname : string
       Layer name

    Returns
    -------
    UTF-8 encoded data set name

    """
    template_names = ['kernel:0', 'bias:0']
    dataset_name = lname + '/' + template_names[index]
    return dataset_name.encode('utf8')
