class_docstr: Context manager to emulate os.name != 'posix' 
class_docstr_tok: ["Context","manager","to","emulate","os.name","!","=","'posix","'"]
code: def __init__(self, osname="non-posix"):
      self._new_name = osname
  
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 1 to create a new emulate_nonposix object  with example: obj = emulate_nonposix(osname)