code: def test_does_not_report_if_used_after_stop(self):
      stdout = StringIO()
      with redirect_stdout(stdout):
          mock_run = MagicMock()
          attr_name = "sys/stdout"
          logger = StdoutCaptureLogger(mock_run, attr_name)
          stdout_fp = sys.stdout
          logger.close()
  
          print("testing", file=stdout_fp)
          mock_run[attr_name].log.assert_not_called()
      stdout.seek(0)
      self.assertEqual(stdout.read(), "testing\n")
  
file_path: neptune-client/tests/unit/neptune/new/internal/test_streams.py
imports: import sys
  import threading
  import unittest
  from contextlib import redirect_stdout
  from io import StringIO
  from unittest.mock import MagicMock
  from neptune.internal.streams.std_stream_capture_logger import StdoutCaptureLogger, StdStreamCaptureLogger
  from neptune.logging import Logger
label_desc: Use image node_id 2 for calling the TestStdStreamCaptureLogger obj's underlying member method code with example usage: obj.test_does_not_report_if_used_after_stop() without return types