code: def set_target(target="auto"):
      """
      Sets the target for visualizations launched with the `show`
      method. If unset, or if target is not provided, defaults to 'auto'.
  
      Notes
      -----
      - When in 'auto' target, `show` and `explore` will display plot output
        inline when in Jupyter Notebook, and otherwise will open a native GUI
        window.
      - Only `show` and `explore` can render inline in Jupyter Notebook
        or a browser.
        `annotate` will ignore this setting and open a GUI window
        unless target is set to `None`.
  
      Parameters
      ----------
      target : str
          The target for rendering visualizations launched with `show` methods.
          Possible values are:
          * 'auto': display plot output inline when in Jupyter Notebook, and
            otherwise launch a native GUI window.
          * 'browser': opens a web browser pointing to http://localhost.
          * 'gui': always launch a native GUI window.
          * 'none': prevent all visualizations from being displayed.
      """
      global _target
      if target not in ["auto", "browser", "gui", "none"]:
          raise ValueError(
              "Expected target to be one of: 'auto', 'browser', 'gui', 'none'."
          )
      _target = target
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import json
  import os
  import sys
  from tempfile import mkstemp
  from subprocess import Popen
  from subprocess import PIPE
label_desc: Use image node_id 4 for calling a global function with example usage: set_target(target) without return types