Convert ints, arrays, and Nones to tuples
- shape: None, int or array-like
Represents the shape to convert to tuple.
If shape is None, returns an empty tuple. If it’s an int, (shape,) is returned. If it is array-like, tuple(shape) is returned.