Replace characters in method name so that suitable for function name or Sphinx table anchor :rtype: str
str
(both as-is) or HTML table link (replace underscore in returned string by dash).
name (str) –
sanitize_method()