docs: def logged(level=logging.DEBUG):
      """
      Useful logging decorator. If a method is logged, the beginning and end of
      the method call will be logged at a pre-specified level.
  
      Args:
          level: Level to log method at. Defaults to DEBUG.
      """
      def wrap(f):
          _logger = logging.getLogger("{}.{}".format(f.__module__, f.__name__))
  
          def wrapped_f(*args, **kwargs):
              _logger.log(level, "Called at {} with args = {} and kwargs = {}"
                          .format(datetime.datetime.now(), args, kwargs))
              data = f(*args, **kwargs)
              _logger.log(level, "Done at {} with args = {} and kwargs = {}"
                          .format(datetime.datetime.now(), args, kwargs))
              return data
  
          return wrapped_f
      return wrap