code: def _integer_and_none_validator(val):
      try:
          if val is None or int(val):
              return
      except ValueError:
          raise ValueError(
              f"{val} is not a valid option. "
              f"Must be an integer or None."
          )
  
imports: import os
  import textwrap
  from collections.abc import Container
  from contextlib import ContextDecorator
  from dataclasses import dataclass
  from typing import Any, Callable, Dict, Optional
label_desc: Use image node_id 12 for calling a global function with example usage: _integer_and_none_validator(val) without return types