code: def _get_typing_replacement_module(grammar):
      """
      The idea is to return our jedi replacement for the PEP-0484 typing module
      as discussed at https://github.com/davidhalter/jedi/issues/663
      """
      global _typing_module, _typing_module_code_lines
      if _typing_module is None:
          typing_path = os.path.abspath(
              os.path.join(__file__, "../jedi_typing.py")
          )
          with open(typing_path) as f:
              code = unicode(f.read())
          _typing_module = grammar.parse(code)
          _typing_module_code_lines = split_lines(code, keepends=True)
      return _typing_module, _typing_module_code_lines
  
imports: import os
  import re
  from parso import ParserSyntaxError, parse, split_lines
  from parso.python import tree
  from jedi._compatibility import unicode, force_unicode
  from jedi.evaluate.cache import evaluator_method_cache
  from jedi.evaluate import compiled
  from jedi.evaluate.base_context import NO_CONTEXTS, ContextSet
  from jedi.evaluate.lazy_context import LazyTreeContext
  from jedi.evaluate.context import ModuleContext
  from jedi.evaluate.helpers import is_string
  from jedi import debug
  from jedi import parser_utils
label_desc: Use image node_id 9 for calling a global function with example usage: _get_typing_replacement_module(grammar) and returns: _typing_module,  _typing_module_code_lines