def print_entity(entity):
    if not entity:
        return
    if entity in 'name':
        print(('name: ', entity['name']))
    if isinstance(entity, dict):
        for key, value in list(entity.items()):
            print(('\t', key, ' = ', value))
    elif hasattr(entity, '__iter__'):
        for item in entity:
            print(('\t', item))
    else:
        print(('\t', entity))
dataset/ETHPy150Open HewlettPackard/python-hpOneView/hpOneView/common.py/print_entity/swapped operands of `in`