How we get name space of object which we try to access?

Thank you,