ensure_tuple# ensure_tuple(x: T, n: int = 2) → tuple[T, ...][source]# Convert to n-tuple if not already an n-tuple. Parameters: x (T) – n (int) – Return type: tuple[~T, …]