code: def __log(self, method_name):
          
          if not self.__already_logged:
              # Print only if not already done
              stack = "\n\t".join(traceback.format_stack())
  
              logging.getLogger(self.__logger).warning(
                  "%s: %s\n%s", method_name, self.__message, stack
              )
              self.__already_logged = True
docs: Logs the deprecation message on first call, does nothing after
  
          :param method_name: Name of the deprecated method