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 _plotly_utils.exceptions.PlotlyError(
              "Your list or tuple must contain at least 2 items."
          )
      template = (
          (len(iterable) - 2) * "{}, "
          + "{} "
          + conj
          + " {}"
          + period * "."
      )
      return template.format(*iterable)
  
imports: import copy
  import random
  import re
  import string
  import warnings
  import _plotly_utils.exceptions
  from chart_studio import exceptions
  from chart_studio.config import get_config
label_desc: Use image node_id 1 for calling a global function with example usage: list_of_options(iterable, conj, period) and returns: template