code: def from_str(cls, visibility: str) -> "ProjectVisibilityDTO":
      verify_type("visibility", visibility, str)
  
      try:
          return {
              ProjectVisibility.PRIVATE: ProjectVisibilityDTO.PRIVATE,
              ProjectVisibility.PUBLIC: ProjectVisibilityDTO.PUBLIC,
              ProjectVisibility.WORKSPACE: ProjectVisibilityDTO.WORKSPACE,
          }[visibility]
      except KeyError as e:
          raise UnsupportedValue(
              enum=cls.__name__, value=visibility
          ) 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 ProjectVisibilityDTO obj's underlying member method code with example usage: obj.from_str(cls, visibility) and returns: dict