code: def webdoc(func=None, stable=None):
      """
      Opens a browser and displays online documentation
  
      Parameters
      ----------
      func : {str, callable}
          Either a string to search the documentation or a function
      stable : bool
          Flag indicating whether to use the stable documentation (True) or
          the development documentation (False).  If not provided, opens
          the stable documentation if the current version of statsmodels is a
          release
  
      Examples
      --------
      >>> import statsmodels.api as sm
  
      Documentation site
  
      >>> sm.webdoc()
  
      Search for glm in docs
  
      >>> sm.webdoc('glm')
  
      Go to current generated help for OLS
  
      >>> sm.webdoc(sm.OLS, stable=False)
  
      Notes
      -----
      By default, open stable documentation if the current version of
      statsmodels is a release.  Otherwise opens the development documentation.
  
      Uses the default system browser.
      """
      stable = __version__ if "dev" not in __version__ else stable
      url_or_error = _generate_url(func, stable)
      webbrowser.open(url_or_error)
      return None
  
imports: import webbrowser
  from urllib.parse import urlencode
  from statsmodels import __version__
label_desc: Use image node_id 2 for calling a global function with example usage: webdoc(func, stable) and returns: None