def maybe_convert_platform_interval(values):
if isinstance(values, (list, tuple)) and len(values) == <NUM_LIT:0>:<EOL><INDENT>return np.array([], dtype=np.int64)<EOL><DEDENT>elif is_categorical_dtype(values):<EOL><INDENT>values = np.asarray(values)<EOL><DEDENT>return maybe_convert_platform(values)<EOL>
Try to do platform conversion, with special casing for IntervalArray.
Wrapper around maybe_convert_platform that alters the default return
dtype in certain cases to be compatible with IntervalArray.  For example,
empty lists return with integer dtype instead of object dtype, which is
prohibited for IntervalArray.

Parameters
----------
values : array-like

Returns
-------
array