code: def to_api(self) -> str:
      if self.value == "admin":
          return "owner"
      return self.value
  
file_path: neptune-client/src/neptune/management/internal/utils.py
imports: import re
  from enum import Enum
  from typing import Optional
  from neptune.common.patterns import PROJECT_QUALIFIED_NAME_PATTERN
  from neptune.management.exceptions import ConflictingWorkspaceName, InvalidProjectName, MissingWorkspaceName
label_desc: Use image node_id 1 for calling the WorkspaceMemberRole obj's underlying member method code with example usage: obj.to_api() and returns: self, str