docstr: Call method on callable `obj` to deprecate
  
  Parameters
  ----------
  obj: Object
      The callable being decorated as deprecated
  
  Object
      Callable result of either: 1) :meth:`_decorate_class` if `obj` is a class, or
      2) :meth:`_decorate_function` if `obj` is a function/method
docstr_tok: ["Call","method","on","callable","`","obj","`","to","deprecate","Parameters","--","--","--","--","--","obj",":","Object","The","callable","being","decorated","as","deprecated","Object","Callable","result","of","either",":","1",")",":","meth",":","`","_decorate_class","`","if","`","obj","`","is","a","class",",","or","2",")",":","meth",":","`","_decorate_function","`","if","`","obj","`","is","a","function\/method"]
code: def __call__(self, obj):
      """Call method on callable `obj` to deprecate
  
      Parameters
      ----------
      obj: Object
          The callable being decorated as deprecated
  
      Object
          Callable result of either: 1) :meth:`_decorate_class` if `obj` is a class, or
          2) :meth:`_decorate_function` if `obj` is a function/method"""
      #################### Log Deprecation Warning ####################
      if self.do_warn:
          warn_cls = (
              UnsupportedWarning
              if self.is_unsupported
              else DeprecatedWarning
          )
          self.warning = warn_cls(
              obj.__name__,
              self.v_deprecate,
              self.v_remove,
              self.details,
          )
          warn(self.warning, category=DeprecationWarning, stacklevel=2)
  
      #################### Decorate and Return Callable ####################
      if isinstance(obj, type):
          return self._decorate_class(obj)
      else:
          return self._decorate_function(obj)
  
imports: from hyperparameter_hunter.i_o.exceptions import DeprecatedWarning, UnsupportedWarning
  from functools import wraps
  import re
  from six import string_types
  from textwrap import dedent
  from typing import Union
  from warnings import warn, simplefilter
label_desc: Use image node_id 2 for calling the Deprecated obj's underlying member method code with example usage: obj.__call__(obj) and returns: self, self