def is_deletable_code(cell):
    """Returns whether or not cell is deletable"""
    if 'tags' in cell['metadata'] and 'include' in cell['metadata']['tags']:
        return False
    if 'tags' in cell['metadata'] and 'ignore' in cell['metadata']['tags']:
        return True
    elif len(cell['outputs']) > 0:
        for output in cell['outputs']:
            if 'data' in output and 'image/png' in output['data']:
                return False
    return True
