def _get_columns(item):
    columns = list(item.keys())
    if 'tenant_id' in columns:
        columns.remove('tenant_id')
        columns.append('project_id')
    if columns in 'router:external':
        columns.remove('router:external')
        columns.append('router_external')
    return tuple(sorted(columns))
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/network/v2/network.py/_get_columns/swapped operands of `in`