code: def update_session_plot_options(**kwargs):
      """
      Update the _session plot_options
  
      :param (str|optional) filename: What the file will be named in Plotly
      :param (str|optional) fileopt: 'overwrite', 'append', 'new', or 'extend'
      :param (bool|optional) world_readable: Make public or private.
      :param (dict|optional) sharing: 'public', 'private', 'secret'
      :param (bool|optional) auto_open: For `plot`, open in new browser tab?
      :param (bool|optional) validate: Error locally if data doesn't pass?
  
      """
      # raise exception if key is invalid or value is the wrong type
      for key in kwargs:
          if key not in PLOT_OPTIONS:
              raise _plotly_utils.exceptions.PlotlyError(
                  "{} is not a valid config or plot option key".format(
                      key
                  )
              )
          if not isinstance(kwargs[key], PLOT_OPTIONS[key]):
              raise _plotly_utils.exceptions.PlotlyError(
                  "{} must be of type '{}'".format(
                      key, PLOT_OPTIONS[key]
                  )
              )
  
          # raise exception if sharing is invalid
          if key == "sharing" and not (kwargs[key] in SHARING_OPTIONS):
              raise _plotly_utils.exceptions.PlotlyError(
                  "'{0}' must be of either '{1}', '{2}'"
                  " or '{3}'".format(key, *SHARING_OPTIONS)
              )
  
      # update local _session dict with new plot options
      _session["plot_options"].update(kwargs)
  
imports: from __future__ import absolute_import
  import copy
  import _plotly_utils.exceptions
label_desc: Use image node_id 2 for calling a global function with example usage: update_session_plot_options() without return types