def __getattr__(self, attr):
if attr in AVAILABLE_METHODS:<EOL><INDENT>self._patch_resource(attr)<EOL>return prepare_request(self)<EOL><DEDENT>resource = self.client.get_resource(self.resource.path + "<STR_LIT:/>", attr)<EOL>if not resource:<EOL><INDENT>raise ResourceNotFoundError(self.resource.path + "<STR_LIT:/>" + attr)<EOL><DEDENT>if hasattr(resource, "<STR_LIT>"):<EOL><INDENT>return lambda x: ParameterizedNode(<EOL>self.client, resource.resource, {resource.parameter: x})<EOL><DEDENT>else:<EOL><INDENT>return Node(self.client, resource)<EOL><DEDENT>
Accessing sub node