code: def named_range(name, stop: int) -> Sequence[tuple[str, int]]:
      """Equivalent to `range()` but suitable for use with ``named_parameters``."""
      return tuple((f"{name}_{i}", i) for i in range(stop))
  
file_path: dm-haiku/haiku/_src/test_utils.py
imports: from collections.abc import Generator, Sequence
  import functools
  import inspect
  import itertools
  import os
  import types
  from typing import Any, Callable, Optional, TypeVar
  from absl.testing import parameterized
  from haiku._src import config
  from haiku._src import transform
  import jax
label_desc: Use image node_id 6 for calling a global function with example usage: named_range(name, stop) and returns: tuple