code: def to_list(input):
      if isinstance(input, (list, tuple)):
          return list(input)
      else:
          return [input]
  
imports: import re
  from bigdl.dllib.utils.log4Error import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: to_list(input) and returns: list, list