docs: def _print_function(self, f, prefix, fullname, func):
      """Prints the given function to `f`."""
      heading = prefix + " `" + fullname
      if not isinstance(func, property):
        heading += self._generate_signature_for_function(func)
      heading += "` {#%s}" % _get_anchor(self._module_to_name, fullname)
      print(heading, file=f)
      print("", file=f)
      self._print_formatted_docstring(inspect.getdoc(func), f)
      print("", file=f)