code: def open_docs(kind=None, version=None):
      """Launch a new web browser tab with the MNE documentation.
  
      Parameters
      ----------
      kind : str | None
          Can be "api" (default), "tutorials", or "examples".
          The default can be changed by setting the configuration value
          MNE_DOCS_KIND.
      version : str | None
          Can be "stable" (default) or "dev".
          The default can be changed by setting the configuration value
          MNE_DOCS_VERSION.
      """
      from .check import _check_option
      from .config import get_config
  
      if kind is None:
          kind = get_config("MNE_DOCS_KIND", "api")
      help_dict = dict(
          api="python_reference.html",
          tutorials="tutorials.html",
          examples="auto_examples/index.html",
      )
      _check_option("kind", kind, sorted(help_dict.keys()))
      kind = help_dict[kind]
      if version is None:
          version = get_config("MNE_DOCS_VERSION", "stable")
      _check_option("version", version, ["stable", "dev"])
      webbrowser.open_new_tab(
          "https://mne.tools/%s/%s" % (version, kind)
      )
  
imports: import inspect
  import os
  import os.path
  import re
  import sys
  import webbrowser
  from copy import deepcopy
  from decorator import FunctionMaker
  from ..defaults import HEAD_SIZE_DEFAULT
  from ._bunch import BunchConst
label_desc: Use image node_id 7 for calling a global function with example usage: open_docs(kind, version) without return types