code: def test_neptune_offline(neptune_mock):
      neptune_mock.init_run.return_value.exists.return_value = False
  
      logger = NeptuneLogger(mode="offline")
      created_run_mock = logger.run
      logger.experiment["foo"] = "bar"
  
      created_run_mock.exists.assert_called_once_with("sys/id")
      assert logger._run_short_id == "OFFLINE"
      assert logger._run_name == "offline-name"
  
imports: import os
  import pickle
  from collections import namedtuple
  from unittest import mock
  from unittest.mock import MagicMock, call
  import lightning.pytorch
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import NeptuneLogger
label_desc: Use image node_id 5 for calling a global function with example usage: test_neptune_offline(neptune_mock) without return types