code: def list_of_options(iterable, conj="and", period=True):
      """
      Returns an English listing of objects seperated by commas ','
  
      For example, ['foo', 'bar', 'baz'] becomes 'foo, bar and baz'
      if the conjunction 'and' is selected.
      """
      if len(iterable) < 2:
          raise exceptions.PlotlyError(
              "Your list or tuple must contain at least 2 items."
          )
      template = (
          (len(iterable) - 2) * "{}, "
          + "{} "
          + conj
          + " {}"
          + period * "."
      )
      return template.format(*iterable)
  
file_path: catboost/contrib/python/plotly/py2/plotly/figure_factory/utils.py
imports: from __future__ import absolute_import
  import decimal
  import six
  from plotly import exceptions
  from plotly.colors import DEFAULT_PLOTLY_COLORS, PLOTLY_SCALES, color_parser, colorscale_to_colors, colorscale_to_scale, convert_to_RGB_255, find_intermediate_color, hex_to_rgb, label_rgb, n_colors, unconvert_from_RGB_255, unlabel_rgb, validate_colors, validate_colors_dict, validate_colorscale, validate_scale_values
label_desc: Use image node_id 9 for calling a global function with example usage: list_of_options(iterable, conj, period) and returns: template