def _get_state(self, ctx):
        try:
            return self._states[ctx._id_obj]
        except KeyError:
            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
returns the NodeState object for this node and context
dataset/ETHPy150Open manahl/mdf/mdf/nodes.py/MDFNode._get_state