code: def is_sorted(env, exec_policy, first, last, comp=None):
      """Returns true if the range is sorted in ascending order."""
      _assert_exec_policy_type(exec_policy)
      _assert_pointer_type(first)
      _assert_same_type(first, last)
      if comp is not None:
          raise NotImplementedError("comp option is not supported")
      args = [exec_policy, first, last]
      params = ", ".join([a.code for a in args])
      return _Data(f"thrust::is_sorted({params})", _cuda_types.bool_)
  
imports: from cupyx.jit import _internal_types
  from cupyx.jit import _cuda_types
  from cupyx.jit._internal_types import Data
label_desc: Use image node_id 21 for calling a global function with example usage: is_sorted(env, exec_policy, first, last, comp) and returns: _Data