def _print_items(report, key, writer):
    """print out issues or fixes
    report: report dictionary
    key: 'issues' | 'fixes'
    writer: function
    """
    try:
        items = report[key]
    except KeyError:
        return
    items_found = len(items)
    if items_found == 0:
        writer(f'No {key} found!')
        writer('---')
        return
    writer(f'{items_found} {key} found:')
    has_oids = True
    if type(items) == list:
        for item in items:
            if type(item) == int:
                writer(f'    ObjectID {item}')
            else:
                has_oids = False
                writer(f'    {item}')
    else:
        for oid in items:
            writer(f'    ObjectID {oid}: {items[oid]}')
    if has_oids:
        writer(f'\nSelect statement to view {key} in ArcGIS:')
        statement = f"OBJECTID IN ({', '.join([str(oid) for oid in items])})"
        writer(statement)
    writer('---')
