code: def set_sharing_and_world_readable(option_set):
      if "world_readable" in option_set and "sharing" not in option_set:
          option_set["sharing"] = (
              "public" if option_set["world_readable"] else "private"
          )
  
      elif (
          "sharing" in option_set and "world_readable" not in option_set
      ):
          if option_set["sharing"] == "public":
              option_set["world_readable"] = True
          else:
              option_set["world_readable"] = False
  
file_path: plotly.py/packages/python/chart-studio/chart_studio/utils.py
imports: from __future__ import absolute_import
  import os.path
  import re
  import threading
  import warnings
  import json
  from _plotly_utils.exceptions import PlotlyError
  from _plotly_utils.optional_imports import get_module
label_desc: Use image node_id 9 for calling a global function with example usage: set_sharing_and_world_readable(option_set) without return types