code: def override_error(
      name: str,
      context: parser.Context | None,
      prev_context: parser.Context | None,
      token: lexer.Token,
  ) -> SyntaxError:
      return analysis_error(
          f"Duplicate definition of '{name}' @ {context} "
          f"previous definition @ {prev_context}",
          token,
      )
  
imports: from dataclasses import dataclass, field
  import lexer
  import parser
  from typing import Optional
label_desc: Use image node_id 2 for calling a global function with example usage: override_error(name, context, prev_context, token) and returns: analysis_error