def _ensure_arraylike(values):
if not is_array_like(values):<EOL><INDENT>inferred = lib.infer_dtype(values, skipna=False)<EOL>if inferred in ['<STR_LIT>', '<STR_LIT:string>', '<STR_LIT>']:<EOL><INDENT>if isinstance(values, tuple):<EOL><INDENT>values = list(values)<EOL><DEDENT>values = construct_1d_object_array_from_listlike(values)<EOL><DEDENT>else:<EOL><INDENT>values = np.asarray(values)<EOL><DEDENT><DEDENT>return values<EOL>
ensure that we are arraylike if not already