code: def is_base_module(module_path):
      python_base = "{}python{}.{}".format(
          os.sep, sys.version_info.major, sys.version_info.minor
      )
      for path in sys.path:
          if os.path.isdir(path) and path.rstrip("/").endswith(
              (python_base,)
          ):
              if not path[-1] == os.sep:
                  path += os.sep
              if module_path.startswith(path):
                  return True
      return False
  
imports: from __future__ import print_function, division, absolute_import
  import json
  import os
  import sys
  import six
  import fnmatch
  import importlib
  import ast
  import doctest
  import collections
  import functools
  from pathlib2 import Path
  from .utils import parse_git_config
  from .modules import ImportedModules
label_desc: Use image node_id 6 for calling a global function with example usage: is_base_module(module_path) and returns: False, True