code: def assert_minimum_rank(inputs, rank: int):
      """Asserts the rank of the input is at least `rank`."""
      if inputs.ndim < rank:
          raise ValueError(
              "Input %r must have rank >= %d" % (inputs, rank)
          )
  
file_path: dm-haiku/haiku/_src/utils.py
imports: import collections.abc
  from collections.abc import Sequence
  import decimal
  import inspect
  import pprint
  import re
  from typing import Any, TypeVar, Union
  import jax
label_desc: Use image node_id 7 for calling a global function with example usage: assert_minimum_rank(inputs, rank) without return types