code: def _is_safe(executable_path):
      # Resolve sym links. A venv typically is a symlink to a known Python
      # binary. Only virtualenvs copy symlinks around.
      real_path = os.path.realpath(executable_path)
  
      if _is_unix_safe_simple(real_path):
          return True
  
      # Just check the list of known Python versions. If it's not in there,
      # it's likely an attacker or some Python that was not properly
      # installed in the system.
      for environment in find_system_environments():
          if environment.executable == real_path:
              return True
  
          # If the versions don't match, just compare the binary files. If we
          # don't do that, only venvs will be working and not virtualenvs.
          # venvs are symlinks while virtualenvs are actual copies of the
          # Python files.
          # This still means that if the system Python is updated and the
          # virtualenv's Python is not (which is probably never going to get
          # upgraded), it will not work with Jedi. IMO that's fine, because
          # people should just be using venv. ~ dave
          if environment._sha256 == _calculate_sha256_for_file(
              real_path
          ):
              return True
      return False
  
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 15 for calling a global function with example usage: _is_safe(executable_path) and returns: False, True, True, True