def print_wrapper(string, item):
    """A wrapper for log printing for Subaru/HDS pipeline.

    Args:
        string (str): The output string for wrapping.
        item (:class:`astropy.table.Row`): The log item.

    Returns:
        str: The color-coded string.

    """
    objtype = item['objtype']
    objname = item['object']

    if objtype=='BIAS' and objname=='BIAS':
        # bias images, use dim (2)
        return '\033[2m'+string.replace('\033[0m', '')+'\033[0m'

    elif objtype=='COMPARISON'and objname=='COMPARISON':
        # arc lamp, use light yellow (93)
        return '\033[93m'+string.replace('\033[0m', '')+'\033[0m'

    elif objtype=='FLAT' and objname=='FLAT':
        # flat, use light red (91)
        return '\033[91m'+string.replace('\033[0m', '')+'\033[0m'

    elif objtype=='OBJECT':
        # sci images, use highlights (1)
        return '\033[1m'+string.replace('\033[0m', '')+'\033[0m'

    else:
        return string