code: def next_module_number(name: str) -> int:
      frame = base.current_frame()
      counters = frame.counter_stack.peek(-2)
      return counters[name]
  
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 10 for calling a global function with example usage: next_module_number(name) and returns: counters