import logging


def print_func(fn):
  """Prints a method name function before calling it."""
  fn_name = fn.__name__

  def decorated_fn(*args, **kwargs):
    logging.info(fn_name)
    output = fn(*args, **kwargs)
    logging.info("%s: done", fn_name)
    return output
  return decorated_fn