class_docstr: Context manager to redirect stderr for exec_command test.
code: def __enter__(self):
      self.old_stderr = sys.stderr
      sys.stderr = self._stderr
  
imports: import os
  import pytest
  import sys
  from tempfile import TemporaryFile
  from numpy.distutils import exec_command
  from numpy.distutils.exec_command import get_pythonexe
  from numpy.testing import tempdir, assert_, assert_warns, IS_WASM
  from io import StringIO
label_desc: Use image node_id 2 for calling the redirect_stderr obj's underlying member method code with example usage: obj.__enter__() without return types