code: def partial_init() -> Generator[None, None, None]:
      token = finish_init.set(False)
      yield
      finish_init.reset(token)
  
file_path: sqlmodel/sqlmodel/_compat.py
imports: import types
  from contextlib import contextmanager
  from contextvars import ContextVar
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, AbstractSet, Any, Dict, ForwardRef, Generator, Mapping, Optional, Set, Type, TypeVar, Union
  from pydantic import VERSION
  from pydantic.fields import FieldInfo
  from typing_extensions import get_args, get_origin
label_desc: Use image node_id 2 for calling a global function with example usage: partial_init() without return types