code: def get_cached_default_environment():
      var = os.environ.get("VIRTUAL_ENV")
      environment = _get_cached_default_environment()
      if var and var != environment.path:
          _get_cached_default_environment.clear_cache()
          return _get_cached_default_environment()
      return environment
  
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 6 for calling a global function with example usage: get_cached_default_environment() and returns: environment, _get_cached_default_environment