def _wrap_result(name, data, sparse_index, fill_value, dtype=None):
if name.startswith('<STR_LIT>'):<EOL><INDENT>name = name[<NUM_LIT:2>:-<NUM_LIT:2>]<EOL><DEDENT>if name in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>dtype = np.bool<EOL><DEDENT>fill_value = lib.item_from_zerodim(fill_value)<EOL>if is_bool_dtype(dtype):<EOL><INDENT>fill_value = bool(fill_value)<EOL><DEDENT>return SparseArray(data,<EOL>sparse_index=sparse_index,<EOL>fill_value=fill_value,<EOL>dtype=dtype)<EOL>
wrap op result to have correct dtype