code: def _get_token(api_token: Optional[str] = None) -> str:
      return api_token or os.getenv(API_TOKEN_ENV_NAME)
  
imports: import os
  from typing import Dict, Iterable, List, Optional, Union
  from bravado.exception import HTTPBadRequest, HTTPConflict, HTTPForbidden, HTTPNotFound, HTTPUnprocessableEntity
  from neptune.common.backends.utils import with_api_exceptions_handler
  from neptune.common.envs import API_TOKEN_ENV_NAME
  from neptune.internal.backends.hosted_client import DEFAULT_REQUEST_KWARGS, create_backend_client, create_http_client_with_auth, create_leaderboard_client
  from neptune.internal.backends.swagger_client_wrapper import SwaggerClientWrapper
  from neptune.internal.backends.utils import parse_validation_errors, ssl_verify
  from neptune.internal.credentials import Credentials
  from neptune.internal.id_formats import QualifiedName
  from neptune.internal.utils import verify_collection_type, verify_type
  from neptune.internal.utils.iteration import get_batches
  from neptune.internal.utils.logger import logger
  from neptune.management.exceptions import AccessRevokedOnDeletion, AccessRevokedOnMemberRemoval, AccessRevokedOnServiceAccountRemoval, BadRequestException, ProjectAlreadyExists, ProjectNotFound, ServiceAccountAlreadyHasAccess, ServiceAccountNotExistsOrWithoutAccess, ServiceAccountNotFound, UserAlreadyHasAccess, UserAlreadyInvited, UserNotExistsOrWithoutAccess, WorkspaceNotFound, WorkspaceOrUserNotFound
  from neptune.management.internal.dto import ProjectMemberRoleDTO, ProjectVisibilityDTO, ServiceAccountDTO, WorkspaceMemberRoleDTO
  from neptune.management.internal.types import ProjectVisibility
  from neptune.management.internal.utils import WorkspaceMemberRole, extract_project_and_workspace, normalize_project_name
label_desc: Use image node_id 1 for calling a global function with example usage: _get_token(api_token) and returns: unknown