code: def add(
      node_context,
      error_name,
      node,
      message=None,
      typ=Error,
      payload=None,
  ):
      exception = CODES[error_name][1]
      if _check_for_exception_catch(
          node_context, node, exception, payload
      ):
          return
  
      # TODO this path is probably not right
      module_context = node_context.get_root_context()
      module_path = module_context.py__file__()
      instance = typ(error_name, module_path, node.start_pos, message)
      debug.warning(str(instance), format=False)
      node_context.evaluator.analysis.append(instance)
  
imports: from parso.python import tree
  from jedi._compatibility import force_unicode
  from jedi import debug
  from jedi.evaluate.compiled import CompiledObject
  from jedi.evaluate.helpers import is_string
label_desc: Use image node_id 1 for calling a global function with example usage: add(node_context, error_name, node, message, typ, payload) without return types