code: def assert_minimum_rank(inputs, rank: int):
      """Asserts the rank of the input is at least `rank`."""
      shape = tuple(inputs.shape)
      actual_rank = len(shape)
      if actual_rank < rank:
          raise ValueError(
              "Shape %r must have rank >= %d" % (shape, rank)
          )
  
imports: import collections.abc
  import functools
  import inspect
  import re
  import threading
  from typing import Any, Callable, Dict, Generic, Optional, Sequence, Tuple, TypeVar, Union
  from absl import logging
  from sonnet.src import initializers
  import tabulate
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: assert_minimum_rank(inputs, rank) without return types