code: def test_neptune_online(neptune_mock):
      neptune_mock.init_run.return_value.exists.return_value = True
      neptune_mock.init_run.return_value.__getitem__.side_effect = (
          _fetchable_paths
      )
  
      logger = NeptuneLogger(api_key="test", project="project")
      created_run_mock = logger.run
  
      assert logger._run_instance == created_run_mock
      created_run_mock.exists.assert_called_once_with("sys/id")
      assert logger.name == "Run test name"
      assert logger.version == "TEST-1"
      assert neptune_mock.init_run.call_count == 1
      assert created_run_mock.__getitem__.call_count == 2
      assert created_run_mock.__setitem__.call_count == 1
      created_run_mock.__getitem__.assert_has_calls(
          [call("sys/id"), call("sys/name")], any_order=True
      )
      created_run_mock.__setitem__.assert_called_once_with(
          "source_code/integrations/pytorch-lightning", pl.__version__
      )
  
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 4 for calling a global function with example usage: test_neptune_online(neptune_mock) without return types