code: def to_domain(role: str) -> str:
      verify_type("role", role, str)
  
      return {
          ProjectMemberRoleDTO.VIEWER.value: ProjectMemberRole.VIEWER,
          ProjectMemberRoleDTO.MANAGER.value: ProjectMemberRole.OWNER,
          ProjectMemberRoleDTO.MEMBER.value: ProjectMemberRole.CONTRIBUTOR,
      }.get(role)
  
file_path: neptune-client/src/neptune/management/internal/dto.py
imports: from dataclasses import dataclass
  from enum import Enum
  from neptune.internal.utils import verify_type
  from neptune.management.exceptions import UnsupportedValue
  from neptune.management.internal.types import ProjectMemberRole, ProjectVisibility, WorkspaceMemberRole
label_desc: Use image node_id 2 for calling the ProjectMemberRoleDTO obj's underlying member method code with example usage: obj.to_domain(role) and returns: dict