code: def from_str(cls, role: str) -> "ProjectMemberRoleDTO":
      verify_type("role", role, str)
  
      try:
          return {
              ProjectMemberRole.VIEWER: ProjectMemberRoleDTO.VIEWER,
              ProjectMemberRole.CONTRIBUTOR: ProjectMemberRoleDTO.MEMBER,
              ProjectMemberRole.OWNER: ProjectMemberRoleDTO.MANAGER,
          }[role]
      except KeyError as e:
          raise UnsupportedValue(enum=cls.__name__, value=role) from e
  
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 ProjectMemberRoleDTO obj's underlying member method code with example usage: obj.from_str(cls, role) and returns: dict