code: def _get_python_inc_from_config(plat_specific, spec_prefix):
      """
      If no prefix was explicitly specified, provide the include
      directory from the config vars. Useful when
      cross-compiling, since the config vars may come from
      the host
      platform Python installation, while the current Python
      executable is from the build platform installation.
  
      >>> monkeypatch = getfixture('monkeypatch')
      >>> gpifc = _get_python_inc_from_config
      >>> monkeypatch.setitem(gpifc.__globals__, 'get_config_var', str.lower)
      >>> gpifc(False, '/usr/bin/')
      >>> gpifc(False, '')
      >>> gpifc(False, None)
      'includepy'
      >>> gpifc(True, None)
      'confincludepy'
      """
      if spec_prefix is None:
          return get_config_var("CONF" * plat_specific + "INCLUDEPY")
  
imports: import os
  import re
  import sys
  import sysconfig
  import pathlib
  from .errors import DistutilsPlatformError
  from .None import py39compat
  from ._functools import pass_none
label_desc: Use image node_id 9 for calling a global function with example usage: _get_python_inc_from_config(plat_specific, spec_prefix) and returns: get_config_var