def maybe_convert_platform(values):
if isinstance(values, (list, tuple)):<EOL><INDENT>values = construct_1d_object_array_from_listlike(list(values))<EOL><DEDENT>if getattr(values, '<STR_LIT>', None) == np.object_:<EOL><INDENT>if hasattr(values, '<STR_LIT>'):<EOL><INDENT>values = values._values<EOL><DEDENT>values = lib.maybe_convert_objects(values)<EOL><DEDENT>return values<EOL>
try to do platform conversion, allow ndarray or list here