code: def test_user_similar(self):
      # Issue #8759: make sure the posix scheme for the users
      # is similar to the global posix_prefix one
      base = get_config_var("base")
      if HAS_USER_BASE:
          user = get_config_var("userbase")
      # the global scheme mirrors the distinction between prefix and
      # exec-prefix but not the user scheme, so we have to adapt the paths
      # before comparing (issue #9100)
      adapt = sys.base_prefix != sys.base_exec_prefix
      for name in ("stdlib", "platstdlib", "purelib", "platlib"):
          global_path = get_path(name, "posix_prefix")
          if adapt:
              global_path = global_path.replace(
                  sys.exec_prefix, sys.base_prefix
              )
              base = base.replace(sys.exec_prefix, sys.base_prefix)
          elif sys.base_prefix != sys.prefix:
              # virtual environment? Likewise, we have to adapt the paths
              # before comparing
              global_path = global_path.replace(
                  sys.base_prefix, sys.prefix
              )
              base = base.replace(sys.base_prefix, sys.prefix)
          if HAS_USER_BASE:
              user_path = get_path(name, "posix_user")
              expected = os.path.normpath(
                  global_path.replace(base, user, 1)
              )
              # bpo-44860: platlib of posix_user doesn't use sys.platlibdir,
              # whereas posix_prefix does.
              if name == "platlib":
                  # Replace "/lib64/python3.11/site-packages" suffix
                  # with "/lib/python3.11/site-packages".
                  py_version_short = sysconfig.get_python_version()
                  suffix = f"python{py_version_short}/site-packages"
                  expected = expected.replace(
                      f"/{sys.platlibdir}/{suffix}", f"/lib/{suffix}"
                  )
              self.assertEqual(user_path, expected)
  
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 19 for calling the TestSysConfig obj's underlying member method code with example usage: obj.test_user_similar() without return types