from typing import Any
from typing import List


def wrap(item: Any) -> List[Any]:
  """Ensures that the input is either a list, or wrapped in a list. Returns []
  for None.

  """
  if item is None:
    return []

  if isinstance(item, list):
    return item

  return [item]