code: def check_valid_dims(dims, name):
      if dims > NDIM_MAX:
          raise InvalidArgument(
              f"{name}={dims}, but Hypothesis does not support arrays with "
              f"more than {NDIM_MAX} dimensions"
          )
  
imports: import re
  from typing import NamedTuple, Optional, Tuple, Union
  from hypothesis import assume, strategies
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.conjecture.utils import _calc_p_continue
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.validation import check_type, check_valid_interval
  from hypothesis.strategies._internal.utils import defines_strategy
  from hypothesis.utils.conventions import UniqueIdentifier, not_set
label_desc: Use image node_id 3 for calling a global function with example usage: check_valid_dims(dims, name) without return types