code: def is_stdlib_path(path):
      # Python standard library paths look like this:
      # /usr/lib/python3.5/...
      # TODO The implementation below is probably incorrect and not complete.
      if "dist-packages" in path or "site-packages" in path:
          return False
  
      base_path = os.path.join(sys.prefix, "lib", "python")
      return bool(re.match(re.escape(base_path) + r"\d.\d", path))
  
imports: import copy
  import sys
  import re
  import os
  from itertools import chain
  from contextlib import contextmanager
  from parso.python import tree
  from jedi._compatibility import unicode
  from jedi.parser_utils import get_parent_scope
label_desc: Use image node_id 1 for calling a global function with example usage: is_stdlib_path(path) and returns: bool, False