def METHOD_NAME(
    self,
    cmd: str = "sudo -s",
    pattern: str = "ssword",
    enable_pattern: Optional[str] = None,
    check_state: bool = True,
    re_flags: int = re.IGNORECASE,
) -> str:
    """Attempt to become root."""
    msg = """