code: def _get_logger_with_mocks(**kwargs):
      logger = NeptuneLogger(**kwargs)
      run_instance_mock = MagicMock()
      logger._run_instance = run_instance_mock
      logger._run_instance.__getitem__.return_value.fetch.return_value = (
          "exp-name"
      )
      run_attr_mock = MagicMock()
      logger._run_instance.__getitem__.return_value = run_attr_mock
  
      return logger, run_instance_mock, run_attr_mock
  
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 3 for calling a global function with example usage: _get_logger_with_mocks() and returns: logger,  run_instance_mock,  run_attr_mock