from typing import Tuple


def get_namespace_and_name_from_role(role: str) -> Tuple[str, str]:
    """
    Extract namespace and name for a role.

    Args:
        role (str): role in the form {{role_namespace}}.{{role_name}}

    Returns:
        Tuple[str, str]: namespace, name
    """
    # role comes in the form {{role_namespace}}.{{role_name}}, so split by .
    role_data = role.split(".")
    role_namespace, role_name = role_data[0], role_data[1]
    return role_namespace, role_name