class_docstr: Initialize the library and its options.
docstr: Set up global theme.
  
  Parameters
  ----------
  theme : spec
      Theme spec provided by `theme(...)` or `theme_xxx()` functions.
docstr_tok: ["Set","up","global","theme",".","Parameters","--","--","--","--","--","theme",":","spec","Theme","spec","provided","by","`","theme","(","...",")","`","or","`","theme_xxx","(",")","`","functions","."]
code: def set_theme(cls, theme: "plot.FeatureSpec"):
      """
      Set up global theme.
  
      Parameters
      ----------
      theme : spec
          Theme spec provided by `theme(...)` or `theme_xxx()` functions.
  
      """
      if theme.kind != "theme":
          raise ValueError(
              "Wrong option type. Expected `theme` but was `{}`.".format(
                  theme.kind
              )
          )
  
      LetsPlot.set({PLOT_THEME: json.dumps(theme.as_dict())})
  
file_path: lets-plot/python-package/lets_plot/__init__.py
imports: import json
  from pkgutil import extend_path
  from typing import Dict
  from ._version import __version__
  from ._global_settings import _settings, is_production, get_global_bool, PLOT_THEME
  from ._global_settings import NO_JS, OFFLINE
  from .plot import *
  from .export import *
  from .frontend_context import *
  from .settings_utils import *
  from .frontend_context import _configuration
label_desc: Use image node_id 3 for calling the LetsPlot obj's underlying member method code with example usage: obj.set_theme(cls, theme) without return types