code: def validate_plotly_domains(option_set):
      domains_not_none = []
      for d in ["plotly_domain", "plotly_api_domain"]:
          if d in option_set and option_set[d]:
              domains_not_none.append(option_set[d])
  
      if not all(
          d.lower().startswith("https") for d in domains_not_none
      ):
          warnings.warn(http_msg, category=UserWarning)
  
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 8 for calling a global function with example usage: validate_plotly_domains(option_set) without return types