code: def is_serializable(obj: Any) -> bool:
      """Check if object is serializable or not."""
      if isinstance(obj, UNSERIALIZABLE_TYPES):
          return False
      elif isinstance(obj, dict):
          for key, value in obj.items():
              if not is_serializable(key) or not is_serializable(value):
                  return False
      elif isinstance(obj, (list, tuple, set)):
          return all(map(is_serializable, obj))
  
      return True
  
imports: from __future__ import annotations
  import sys
  import time
  import traceback
  import types
  import warnings
  from os import getenv, path
  from typing import TYPE_CHECKING, Any, Literal, NamedTuple, Union
  from sphinx.deprecation import RemovedInSphinx90Warning
  from sphinx.errors import ConfigError, ExtensionError
  from sphinx.locale import _, __
  from sphinx.util import logging
  from sphinx.util.osutil import fs_encoding
  from sphinx.util.typing import NoneType
label_desc: Use image node_id 1 for calling a global function with example usage: is_serializable(obj) and returns: True, False, all, False