def _get_state(self, ctx):
        """returns the NodeState object for this node and context"""
        try:
            return self._states[ctx._id_obj]
        except __HOLE__:
            pass

        # otherwise create a new state for this context and return it
        state = self._states[ctx._id_obj] = NodeState(ctx._id_obj, self._default_dirty_flags_)
        return state
dataset/ETHPy150Open manahl/mdf/mdf/nodes.py/MDFNode._get_state