code: def get_schema(cls: type) -> PlainConfigSchema:
      """Extract ConfigOptions defined in a class (used just as a container) and put them into a schema tuple."""
      if issubclass(cls, Config):
          return cls._schema
      return tuple(
          (k, v)
          for k, v in cls.__dict__.items()
          if isinstance(v, BaseConfigOption)
      )
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import sys
  import warnings
  from collections import UserDict
  from contextlib import contextmanager
  from typing import IO, TYPE_CHECKING, Any, Generic, Iterator, List, Mapping, Sequence, Tuple, TypeVar, overload
  from mkdocs import exceptions, utils
  from mkdocs.utils import weak_property
label_desc: Use image node_id 1 for calling a global function with example usage: get_schema(cls) and returns: tuple, cls