def _sanitize_values(arr):
if hasattr(arr, '<STR_LIT>'):<EOL><INDENT>arr = arr.values<EOL><DEDENT>else:<EOL><INDENT>if is_scalar(arr):<EOL><INDENT>arr = [arr]<EOL><DEDENT>if isinstance(arr, np.ndarray):<EOL><INDENT>pass<EOL><DEDENT>elif is_list_like(arr) and len(arr) > <NUM_LIT:0>:<EOL><INDENT>arr = maybe_convert_platform(arr)<EOL><DEDENT>else:<EOL><INDENT>arr = np.asarray(arr)<EOL><DEDENT><DEDENT>return arr<EOL>
return an ndarray for our input,
in a platform independent manner