code: def hsplit(ary, indices_or_sections):
      if isinstance(indices_or_sections, (list, tuple, ivy.Array)):
          if ary.ndim == 1:
              indices_or_sections = (
                  ivy.diff(
                      indices_or_sections,
                      prepend=[0],
                      append=[ary.shape[0]],
                  )
                  .astype(ivy.int8)
                  .to_list()
              )
          else:
              indices_or_sections = (
                  ivy.diff(
                      indices_or_sections,
                      prepend=[0],
                      append=[ary.shape[1]],
                  )
                  .astype(ivy.int8)
                  .to_list()
              )
      return ivy.hsplit(ary, indices_or_sections)
  
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back, handle_jax_dtype
  from ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs
label_desc: Use image node_id 24 for calling a global function with example usage: hsplit(ary, indices_or_sections) and returns: ivy