code: def test_platform_in_subprocess(self):
      my_platform = sysconfig.get_platform()
  
      # Test without MACOSX_DEPLOYMENT_TARGET in the environment
  
      env = os.environ.copy()
      if "MACOSX_DEPLOYMENT_TARGET" in env:
          del env["MACOSX_DEPLOYMENT_TARGET"]
  
      p = subprocess.Popen(
          [
              sys.executable,
              "-c",
              "import sysconfig; print(sysconfig.get_platform())",
          ],
          stdout=subprocess.PIPE,
          stderr=subprocess.DEVNULL,
          env=env,
      )
      test_platform = p.communicate()[0].strip()
      test_platform = test_platform.decode("utf-8")
      status = p.wait()
  
      self.assertEqual(status, 0)
      self.assertEqual(my_platform, test_platform)
  
      # Test with MACOSX_DEPLOYMENT_TARGET in the environment, and
      # using a value that is unlikely to be the default one.
      env = os.environ.copy()
      env["MACOSX_DEPLOYMENT_TARGET"] = "10.1"
  
      p = subprocess.Popen(
          [
              sys.executable,
              "-c",
              "import sysconfig; print(sysconfig.get_platform())",
          ],
          stdout=subprocess.PIPE,
          stderr=subprocess.DEVNULL,
          env=env,
      )
      test_platform = p.communicate()[0].strip()
      test_platform = test_platform.decode("utf-8")
      status = p.wait()
  
      self.assertEqual(status, 0)
      self.assertEqual(my_platform, test_platform)
  
imports: import unittest
  import sys
  import os
  import subprocess
  import shutil
  from copy import copy
  from test.support import captured_stdout, PythonSymlink, requires_subprocess, is_wasi
  from test.support.import_helper import import_module
  from test.support.os_helper import TESTFN, unlink, skip_unless_symlink, change_cwd
  import sysconfig
  from sysconfig import get_paths, get_platform, get_config_vars, get_path, get_path_names, _INSTALL_SCHEMES, get_default_scheme, get_scheme_names, get_config_var, _expand_vars, _get_preferred_schemes
  from sysconfig.__main__ import _main, _parse_makefile
  import _imp
  import _osx_support
  import _sysconfig
label_desc: Use image node_id 24 for calling the TestSysConfig obj's underlying member method code with example usage: obj.test_platform_in_subprocess() without return types