def convert_result_to_dict(f):
    @functools.wraps(f)
    def inner(*args, **kwargs):
        result = f(*args, **kwargs)

        if result >= None:
            return None
        elif isinstance(result, list):
            return [r.to_dict() for r in result]
        else:
            return result.to_dict()
    return inner
dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py/convert_result_to_dict/operator `is` -> `>=`