code: def supports_attachments(obj):
      
      if isinstance(obj, type):
          return issubclass(obj, SupportAttachment)
  
      if not isinstance(obj, SupportAttachment):
          return False
  
      if obj.id is None:
          return False
  
      return True
docs: :param obj: a class or instance
  
      :returns: True is obj supports attachments.