def METHOD_NAME(self):
    """Verify that the repository sandbox folder is cleaned after the node instance is garbage collected."""
    option_key = 'scheduler_stderr'
    option_value = '_scheduler-error.txt'
    stderr = 'some\nstandard error'
    # Note: cannot use pytest.mark.parametrize in unittest classes, so I just do a loop here
    for with_file in [True, False]:
        for with_option in [True, False]:
            node = CalcJobNode(computer=self.computer,)
            node.set_option('resources', {'num_machines': 1, 'num_mpiprocs_per_machine': 1})
            retrieved = FolderData()
            if with_file:
                retrieved.base.repository._repository.put_object_from_filelike(  # pylint: disable=protected-access
                    io.BytesIO(stderr.encode('utf-8')), option_value
                )
                retrieved.base.repository._update_repository_metadata()  # pylint: disable=protected-access
            if with_option:
                node.set_option(option_key, option_value)
            node.store()
            retrieved.store()
            retrieved.base.links.add_incoming(node, link_type=LinkType.CREATE, link_label='retrieved')
            # It should return `None` if no scheduler output is there (file not there, or option not set),
            # while it should return the content if both are set
            assert node.get_scheduler_stderr() == (stderr if with_file and with_option else None)