code: def _add_error(context, name, message=None):
      # Should be a name, not a string!
      if message is None:
          name_str = (
              str(name.value) if isinstance(name, tree.Name) else name
          )
          message = "No module named " + name_str
      if hasattr(name, "parent"):
          analysis.add(context, "import-error", name, message)
      else:
          debug.warning("ImportError without origin: " + message)
  
imports: import os
  from parso.python import tree
  from parso.tree import search_ancestor
  from parso import python_bytes_to_unicode
  from jedi._compatibility import FileNotFoundError, ImplicitNSInfo, force_unicode, unicode
  from jedi import debug
  from jedi import settings
  from jedi.parser_utils import get_cached_code_lines
  from jedi.evaluate import sys_path
  from jedi.evaluate import helpers
  from jedi.evaluate import compiled
  from jedi.evaluate import analysis
  from jedi.evaluate.utils import unite
  from jedi.evaluate.cache import evaluator_method_cache
  from jedi.evaluate.filters import AbstractNameDefinition
  from jedi.evaluate.base_context import ContextSet, NO_CONTEXTS
label_desc: Use image node_id 2 for calling a global function with example usage: _add_error(context, name, message) without return types