parameters: (value)
docstring: If value is a sequence, returns it.
          If it is a string, returns a sequence with value as its sole element.
docstring_summary: If value is a sequence, returns it.
          If it is a string, returns a sequence with value as its sole element.
docstring_tokens: If value is a sequence returns it . If it is a string returns a sequence with value as its sole element .
function: def to_seq (value):
      """ If value is a sequence, returns it.
          If it is a string, returns a sequence with value as its sole element.
          """
      if not value:
          return []
  
      if isinstance (value, str):
          return [value]
  
      else:
          return value
function_tokens: def to_seq ( value ) : if not value : return [ ] if isinstance ( value , str ) : return [ value ] else : return value