code: def dstack(
      arrays: Sequence[ivy.Array],
      /,
      *,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Stack arrays in sequence depth wise (along third axis).
  
      Parameters
      ----------
      arrays
          Sequence of arrays to be stacked.
  
      Returns
      -------
      ret
          The array formed by stacking the given arrays.
  
      Examples
      --------
      >>> x = ivy.array([1, 2, 3])
      >>> y = ivy.array([2, 3, 4])
      >>> ivy.dstack((x, y))
      ivy.array([[[1, 2],
                  [2, 3],
                  [3, 4]]])
      >>> x = ivy.array([[1], [2], [3]])
      >>> y = ivy.array([[2], [3], [4]])
      >>> ivy.dstack((x, y))
      ivy.array([[[1, 2]],
                 [[2, 3]],
                 [[3, 4]]])
      """
      return ivy.current_backend().dstack(arrays, out=out)
  
imports: from typing import Optional, Union, Tuple, Iterable, Sequence, Callable, Any, Literal, List
  from numbers import Number
  from functools import partial
  import math
  import ivy
  from ivy.func_wrapper import handle_out_argument, handle_partial_mixed_function, to_native_arrays_and_back, inputs_to_native_shapes, handle_nestable, handle_array_like_without_promotion, handle_view, inputs_to_ivy_arrays, handle_array_function, handle_device, handle_backend_invalid
  from ivy.functional.ivy.general import _numel
  from ivy.utils.backend import current_backend
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 30 for calling a global function with example usage: dstack() and returns: ivy