code: def error(position, message):
      # print("Errors.error:", repr(position), repr(message)) ###
      if position is None:
          raise InternalError(message)
      err = CompileError(position, message)
      if DebugFlags.debug_exception_on_error:
          raise Exception(err)  # debug
      report_error(err)
      return err
  
imports: from __future__ import absolute_import
  import sys
  from contextlib import contextmanager
  from ..Utils import open_new_file
  from .None import DebugFlags
  from .None import Options
label_desc: Use image node_id 7 for calling a global function with example usage: error(position, message) and returns: err