code: def _prepare_args(xs):
      """Converts `xs` to a list if necessary."""
      if isinstance(xs, (list, tuple)):
          return xs, True
      else:
          return [xs], False
  
file_path: tf-quant-finance/tf_quant_finance/math/gradient.py
imports: import functools
  import tensorflow.compat.v2
label_desc: Use image node_id 6 for calling a global function with example usage: _prepare_args(xs) and returns: xs,  True, list,  False