code: def _runner_log_event_to_log_event(
      runner_log_event: RunnerLogEvent,
  ) -> LogEvent:
      return LogEvent(
          timestamp=datetime.fromtimestamp(
              runner_log_event.timestamp / 1e9, tz=timezone.utc
          ),
          log_source=LogEventSource.STDOUT,
          message=base64.b64encode(runner_log_event.message).decode(),
      )
  
file_path: dstack/src/dstack/_internal/server/services/logs.py
imports: import base64
  from datetime import datetime, timezone
  from pathlib import Path
  from typing import List
  from uuid import UUID
  from dstack._internal.core.models.logs import JobSubmissionLogs, LogEvent, LogEventSource
  from dstack._internal.server import settings
  from dstack._internal.server.models import ProjectModel
  from dstack._internal.server.schemas.logs import PollLogsRequest
  from dstack._internal.server.schemas.runner import LogEvent
label_desc: Use image node_id 4 for calling a global function with example usage: _runner_log_event_to_log_event(runner_log_event) and returns: LogEvent