def to_list(x):
  """Normalizes a list/tuple to a list.

  If a tensor is passed, we return
  a list of size 1 containing the tensor.

  Arguments:
      x: target object to be normalized.

  Returns:
      A list.
  """
  if isinstance(x, (list, tuple)):
    return list(x)
  return [x]