code: def reserve_module_name(name: str, *, check_unique: bool):
      """Reserves the given module name."""
      frame = base.current_frame()
      used_names = frame.used_names_stack.peek(-2)
      if check_unique and name in used_names:
          raise ValueError(f"Module name '{name}' is not unique.")
      used_names.add(name)
  
      name, number = name_and_number(name)
      if number is None:
          number = 0
      counters = frame.counter_stack.peek(-2)
      counters[name] = max(counters[name], number + 1)
  
imports: from collections.abc import Mapping
  import contextlib
  import functools
  import inspect
  import re
  from typing import Any, Callable, ContextManager, NamedTuple, Optional, Protocol, TypeVar
  from haiku._src import base
  from haiku._src import config
  from haiku._src import data_structures
  from haiku._src import utils
  import jax
  import jax.numpy
label_desc: Use image node_id 9 for calling a global function with example usage: reserve_module_name(name) without return types