code: def register_debugger(
      name: str, debugger: Debugger, priority: int
  ) -> None:
      if name in _debugger_registry:
          raise ValueError(
              f'Debugger with name "{name}" already registered.'
          )
      _debugger_registry[name] = (priority, debugger)
  
imports: from __future__ import annotations
  from collections.abc import Hashable
  import dataclasses
  import inspect
  import threading
  from typing import Any, Protocol
  import jax
  from jax import tree_util
  from jax._src import core
  from jax._src import debugging
  from jax._src import traceback_util
  from jax._src import util
label_desc: Use image node_id 3 for calling a global function with example usage: register_debugger(name, debugger, priority) without return types