def get_resource_type(type):
    for key, value in six.iteritems(resource_types):
        if type in key:
            return value

    return 'UNKNOWN'
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/stacks/mappings.py/get_resource_type/swapped operands of `in`