docstr: ivy.Array instance method variant of ivy.top_k. This method simply
  wraps the function, and so the docstring for ivy.top_k also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      The array to compute top_k for.
  k
      Number of top elements to return must not exceed the array size.
  axis
      The axis along which we must return the top elements default value is 1.
  largest
      If largest is set to False we return k smallest elements of the array.
  sorted
      If sorted is set to True we return the elements in sorted order.
  out:
      Optional output tuple, for writing the result to. Must have two arrays,
      with a shape that the returned tuple broadcast to.
  
  Returns
  -------
  ret
      A named tuple with values and indices of top k elements.
  
  Examples
  --------
  With :class:`ivy.Array` input:
  
  >>> x = ivy.array([2., 1., -3., 5., 9., 0., -4])
  >>> y = x.top_k(2)
  >>> print(y)
  top_k(values=ivy.array([9., 5.]), indices=ivy.array([4, 3]))
code: def top_k(
      self: ivy.Array,
      k: int,
      /,
      *,
      axis: int = -1,
      largest: bool = True,
      sorted: bool = True,
      out: Optional[tuple] = None,
  ) -> Tuple[ivy.Array, ivy.NativeArray]:
      """ivy.Array instance method variant of ivy.top_k. This method simply
      wraps the function, and so the docstring for ivy.top_k also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          The array to compute top_k for.
      k
          Number of top elements to return must not exceed the array size.
      axis
          The axis along which we must return the top elements default value is 1.
      largest
          If largest is set to False we return k smallest elements of the array.
      sorted
          If sorted is set to True we return the elements in sorted order.
      out:
          Optional output tuple, for writing the result to. Must have two arrays,
          with a shape that the returned tuple broadcast to.
  
      Returns
      -------
      ret
          A named tuple with values and indices of top k elements.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([2., 1., -3., 5., 9., 0., -4])
      >>> y = x.top_k(2)
      >>> print(y)
      top_k(values=ivy.array([9., 5.]), indices=ivy.array([4, 3]))
      """
      return ivy.top_k(
          self, k, axis=axis, largest=largest, sorted=sorted, out=out
      )
  
imports: import abc
  from typing import Optional, Union, Sequence, Tuple, List, Iterable, Callable, Literal, Any
  from numbers import Number
  import ivy
  from ivy import handle_view
label_desc: Use image node_id 7 for calling the _ArrayWithManipulationExperimental obj's underlying member method code with example usage: obj.top_k() and returns: ivy