code: def to_domain(role: str) -> str:
      return {
          WorkspaceMemberRoleDTO.OWNER.value: WorkspaceMemberRole.ADMIN,
          WorkspaceMemberRoleDTO.MEMBER.value: WorkspaceMemberRole.MEMBER,
      }.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 1 for calling the WorkspaceMemberRoleDTO obj's underlying member method code with example usage: obj.to_domain(role) and returns: dict