from typing import Tuple
from typing import Optional
import re


def deprivatize(name: str) -> Tuple[str, Optional[str]]:
    """
    De-privatize a member name if possible.

    :param name: Name.
    :return: Deprivatized name and owner class name (or None).
    """
    matches = re.match(r"^_([^_]+)__[^_]+.*?(?<!__)$", name)
    if matches:
        cls_name = matches.groups()[0]
        return name[len(cls_name) + 1 :], cls_name
    return name, None