class_docstr: Accept values that are instances of serializable types (e.g. |HasProps|). 
class_docstr_tok: ["Accept","values","that","are","instances","of","serializable","types","(","e.g",".","|HasProps|",")","."]
code: def _assert_type(instance_type: type[Any]) -> None:
      if not (
          isinstance(instance_type, type)
          and issubclass(instance_type, Serializable)
      ):
          raise ValueError(
              f"expected a subclass of Serializable (e.g. HasProps), got {instance_type}"
          )
  
imports: from __future__ import annotations
  import logging
  import types
  from importlib import import_module
  from typing import Any, Callable, Generic, TypeVar
  from ..has_props import HasProps
  from ..serialization import Serializable
  from ._sphinx import model_link, property_link, register_type_link
  from .bases import Init, Property
  from .singletons import Undefined
label_desc: Use image node_id 1 for calling the Instance obj's underlying member method code with example usage: obj._assert_type(instance_type) without return types