code: def apply_function_to_members(cls, fn):
      
      for name, method in get_interesting_members(Mocha, cls):
          setattr(cls, name, fn(method))
docs: Apply a function to all the members of a class.
      Used for decorators that is applied in a class and want all the members
      to use it
      :param cls: class
      :param fn: function
      :return: