code: def _is_python_source_dir(d):
      """
      Return True if the target directory appears to point to an
      un-installed Python.
      """
      modules = pathlib.Path(d).joinpath("Modules")
      return any(
          modules.joinpath(fn).is_file()
          for fn in ("Setup", "Setup.local")
      )
  
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 1 for calling a global function with example usage: _is_python_source_dir(d) and returns: any