docstr: ivy.Array instance method variant of ivy.searchsorted.
  
  This method simply wraps the function, and so the docstring for
  ivy.searchsorted also applies to this method with minimal
  changes.
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.searchsorted",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.searchsorted","also","applies","to","this","method","with","minimal","changes","."]
code: def searchsorted(
      self: ivy.Array,
      v: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      side: Literal["left", "right"] = "left",
      sorter: Optional[
          Union[ivy.Array, ivy.NativeArray, List[int]]
      ] = None,
      ret_dtype: Union[ivy.Dtype, ivy.NativeDtype] = ivy.int64,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.searchsorted.
  
      This method simply wraps the function, and so the docstring for
      ivy.searchsorted also applies to this method with minimal
      changes.
      """
      return ivy.searchsorted(
          self.data,
          v,
          side=side,
          sorter=sorter,
          ret_dtype=ret_dtype,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/array/sorting.py
imports: import abc
  from typing import Optional, Union, Literal, List
  import ivy
label_desc: Use image node_id 4 for calling the _ArrayWithSorting obj's underlying member method code with example usage: obj.searchsorted() and returns: ivy