docstr: Map the values of the input tensor to either 0 or 1, element-wise,
  based on the outcome of a comparison against a threshold value.
  
  Parameters
  ----------
  self
       Data to be binarized
  threshold
       Values greater than this are
       mapped to 1, others to 0.
  out
      optional output array, for writing the result to.
      It must have a shape that the inputs broadcast to.
  
  Returns
  -------
  ret
      Binarized output data
docstr_tok: ["Map","the","values","of","the","input","tensor","to","either","0","or","1",",","element-wise",",","based","on","the","outcome","of","a","comparison","against","a","threshold","value",".","Parameters","--","--","--","--","--","self","Data","to","be","binarized","threshold","Values","greater","than","this","are","mapped","to","1",",","others","to","0.","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","Binarized","output","data"]
code: def binarizer(
      self: ivy.Array,
      /,
      *,
      threshold: float = 0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Map the values of the input tensor to either 0 or 1, element-wise,
      based on the outcome of a comparison against a threshold value.
  
      Parameters
      ----------
      self
           Data to be binarized
      threshold
           Values greater than this are
           mapped to 1, others to 0.
      out
          optional output array, for writing the result to.
          It must have a shape that the inputs broadcast to.
  
      Returns
      -------
      ret
          Binarized output data
      """
      return ivy.binarizer(self._data, threshold=threshold, out=out)
  
imports: import abc
  from typing import Optional, Union, Tuple, List, Sequence
  from numbers import Number
  import ivy
label_desc: Use image node_id 21 for calling the _ArrayWithElementWiseExperimental obj's underlying member method code with example usage: obj.binarizer() and returns: ivy