def _make_tuple(xs):
  """Returns a tuple from a list, a tuple, or a single element."""
  if isinstance(xs, (list, tuple)):
    return tuple(xs)
  else:
    return (xs,)
Returns a tuple from a list, a tuple, or a single element.
trax/layers/combinators.py