from typing import Sequence
from typing import Any
from typing import Union


def keras_input_normalizer(inputs: Sequence[Any]) -> Union[Any, Sequence[Any]]:
  """Unpacks inputs if it has length one."""
  return inputs[0] if len(inputs) == 1 else inputs