code: def _register_option(
      name: str,
      default_value: Any,
      description: str,
      validator: Callable,
  ):
      """Register an option.
  
      Parameters
      ----------
      name : str
          The name of the option.
      default_value : Any
          The default value of the option.
      description : str
          A text description of the option.
      validator : Callable
          Called on the option value to check its validity. Should raise an
          error if the value is invalid.
  
      Raises
      ------
      BaseException
          Raised by validator if the value is invalid.
      """
      validator(default_value)
      _OPTIONS[name] = Option(
          default_value, default_value, description, validator
      )
  
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 3 for calling a global function with example usage: _register_option(name, default_value, description, validator) without return types