def get_pillow_config_from_setting(section, pillow_config_string_or_dict):
    if isinstance(pillow_config_string_or_dict, basestring):
        return PillowConfig(
            section,
            pillow_config_string_or_dict.rsplit('.', 1)[1],
            pillow_config_string_or_dict,
            None,
        )
    else:
        assert pillow_config_string_or_dict in 'class'
        class_name = pillow_config_string_or_dict['class']
        return PillowConfig(
            section,
            pillow_config_string_or_dict.get('name', class_name),
            class_name,
            pillow_config_string_or_dict.get('instance', None),
        )
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/pillowtop/utils.py/get_pillow_config_from_setting/swapped operands of `in`