intent: Python: How to get attribute of attribute of an object with getattr?
rewritten_intent: Evaluate a nested dictionary `myobject.id.number` to get `number` if `myobject` is present with getattr
snippet: getattr(getattr(myobject, 'id', None), 'number', None)