code: def is_nonnegative_int(value: object) -> None:
      """
      Verify that value is None or a positive int.
  
      Parameters
      ----------
      value : None or int
              The `value` to be checked.
  
      Raises
      ------
      ValueError
          When the value is not None or is a negative integer
      """
      if value is None:
          return
  
      elif isinstance(value, int):
          if value >= 0:
              return
  
      msg = "Value must be a nonnegative integer or None"
      raise ValueError(msg)
  
imports: from __future__ import annotations
  from contextlib import ContextDecorator, contextmanager
  import re
  from typing import TYPE_CHECKING, Any, Callable, Generic, NamedTuple, cast
  import warnings
  from pandas._typing import F, T
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 22 for calling a global function with example usage: is_nonnegative_int(value) without return types