code: def __init__(self, reason, name=None):
      if inspect.isclass(reason) or inspect.isfunction(reason):
          raise TypeError("Reason for deprecation must be supplied")
      self.reason = reason
      self.name = name
  
file_path: wandb/wandb/vendor/promise-2.3.0/wandb_promise/utils.py
imports: import functools
  import inspect
  import types
  import warnings
  import sys
label_desc: Use image node_id 1 to create a new deprecated object from inherited base classes: object with example: obj = deprecated(reason, name)