code: def normalize_opt(opt: str, ctx: t.Optional["Context"]) -> str:
      if ctx is None or ctx.token_normalize_func is None:
          return opt
      prefix, opt = split_opt(opt)
      return f"{prefix}{ctx.token_normalize_func(opt)}"
  
imports: import typing
  from collections import deque
  from gettext import gettext
  from gettext import ngettext
  from .exceptions import BadArgumentUsage
  from .exceptions import BadOptionUsage
  from .exceptions import NoSuchOption
  from .exceptions import UsageError
label_desc: Use image node_id 3 for calling a global function with example usage: normalize_opt(opt, ctx) and returns: prefix, ctx, opt