def get_level(self):
if self.parent:<EOL><INDENT>return self.parent.get_level() + <NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL>
Return the level in the resources hierarchy. Mainly used for display.

        Returns
        -------
        int
            The level in the hierarchy, ``0`` for the root level, one more for each level.