def _to_iterable(value):
    if isinstance(value, six.string_types):
        return (value,)
    if isinstance(value, collections.Iterable):
        return value
    return (value,)
Convert the value (an iterable or a scalar value) to an iterable.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/_to_iterable