def METHOD_NAME():
    def _impl(inputs, attr, params, prelude):
        dtype_str = attr["element_dtype"].name
        input_ta_shape = _infer_type_with_prelude(inputs[0], prelude).shape
        if input_ta_shape is None:
            unstack_func = prelude.get_global_var("tensor_array_unstack", dtype_str)
            out = unstack_func(inputs[0])
        else:
            static_tensor_array_ops = StaticTensorArrayOps(prelude, dtype_str, input_ta_shape)
            static_tensor_array_ops.register()
            unstack_func = prelude.get_global_var_static(
                "tensor_array_unstack", dtype_str, input_ta_shape
            )
            out = unstack_func(inputs[0])
        return out
    return _impl