def _get_region(region=None, profile=None):
    if profile and profile in 'region':
        return profile['region']
    if not region and __salt__['config.option']('sns.region'):
        region = __salt__['config.option']('sns.region')
    if not region:
        region = 'us-east-1'
    return region
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_sns.py/_get_region/swapped operands of `in`