code: def _get_executable_path(path, safe=True):
      """
      Returns None if it's not actually a virtual env.
      """
  
      if os.name == "nt":
          python = os.path.join(path, "Scripts", "python.exe")
      else:
          python = os.path.join(path, "bin", "python")
      if not os.path.exists(python):
          raise InvalidPythonEnvironment(
              "%s seems to be missing." % python
          )
  
      _assert_safe(python, safe)
      return python
  
imports: import os
  import sys
  import hashlib
  import filecmp
  from collections import namedtuple
  from jedi._compatibility import highest_pickle_protocol, which
  from jedi.cache import memoize_method, time_cache
  from jedi.evaluate.compiled.subprocess import CompiledSubprocess, EvaluatorSameProcess, EvaluatorSubprocess
  import parso
label_desc: Use image node_id 12 for calling a global function with example usage: _get_executable_path(path, safe) and returns: python