code: 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
  
file_path: turicreate/src/external/boost/boost_1_68_0/tools/build/src/util/utility.py
imports: import re
  import os
  import bjam
  from b2.exceptions import *
  from b2.util import is_iterable_typed
label_desc: Use image node_id 1 for calling a global function with example usage: to_seq(value) and returns: list, list, value