def METHOD_NAME(self):
    with tempfile.TemporaryDirectory() as temp_dir:
        response = {
            "version": 1,
            "root": temp_dir,
        }
        with self.assertLogs(LOGGER_NAME) as watcher:
            resource = response_to_node(response)
        self.assertFalse(resource.has_children())
        self.assertEqual(resource.nice_name, "(Empty)")
        (log_content,) = watcher.output
        self.assertIn("KeyError: \'name\'", log_content)