code: def hstack(
      arrays: Sequence[paddle.Tensor],
      /,
      *,
      out: Optional[paddle.Tensor] = None,
  ) -> paddle.Tensor:
      with ivy.ArrayMode(False):
          if arrays[0].ndim >= 2:
              return ivy.concat(arrays, axis=1)
          else:
              return ivy.concat(arrays, axis=0)
  
imports: from collections import namedtuple
  from typing import Iterable, Optional, Union, Sequence, Tuple, NamedTuple, List, Any, Literal, Callable
  from numbers import Number
  from ..None import backend_version
  from ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_device_and_dtypes, with_supported_dtypes, with_unsupported_dtypes
  import paddle
  import ivy
  import ivy.functional.backends.paddle
  from ivy.functional.ivy.experimental.manipulation import _check_paddle_pad, _to_paddle_padding
label_desc: Use image node_id 6 for calling a global function with example usage: hstack() and returns: ivy, ivy