code: def create_environment(path, safe=True):
      """
      Make it possible to manually create an Environment object by specifying a
      Virtualenv path or an executable path.
  
      :raises: :exc:`.InvalidPythonEnvironment`
      :returns: :class:`Environment`
      """
      if os.path.isfile(path):
          _assert_safe(path, safe)
          return Environment(path)
      return Environment(_get_executable_path(path, safe=safe))
  
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 11 for calling a global function with example usage: create_environment(path, safe) and returns: Environment, Environment