docstr: Args:
      function (String): The function being deprecated.
      deprecated_in (String): The version that ``function`` is deprecated in
      removed_in (String): The version that ``function`` gets removed in
      replace_function (String): The replacement function of deprecated function.
docstr_tok: ["Args",":","function","(","String",")",":","The","function","being","deprecated",".","deprecated_in","(","String",")",":","The","version","that","``","function","``","is","deprecated","in","removed_in","(","String",")",":","The","version","that","``","function","``","gets","removed","in","replace_function","(","String",")",":","The","replacement","function","of","deprecated","function","."]
code: def __init__(
      self, function, deprecated_in, removed_in, replace_function=None
  ):
      """
      Args:
          function (String): The function being deprecated.
          deprecated_in (String): The version that ``function`` is deprecated in
          removed_in (String): The version that ``function`` gets removed in
          replace_function (String): The replacement function of deprecated function.
      """
  
      self.function = function
      self.deprecated_in = deprecated_in
      self.removed_in = removed_in
      self.replace_function = replace_function
      super(CustomDeprecationWarning, self).__init__(
          function, deprecated_in, removed_in, replace_function
      )
  
imports: import functools
  import textwrap
  import warnings
label_desc: Use image node_id 1 to create a new CustomDeprecationWarning object from inherited base classes: DeprecationWarning with example: obj = CustomDeprecationWarning(function, deprecated_in, removed_in, replace_function)