code: def widget_from_iterable(o):
          
          # Dropdown expects a dict or list, so we convert an arbitrary
          # iterable to either of those.
          if isinstance(o, (list, dict)):
              return Dropdown(options=o)
          elif isinstance(o, Mapping):
              return Dropdown(options=list(o.items()))
          else:
              return Dropdown(options=list(o))
docs: Make widgets from an iterable. This should not be done for
          a string or tuple.