code: def _fit_and_test(logger, model, tmp_path):
      trainer = Trainer(
          default_root_dir=tmp_path,
          max_epochs=1,
          limit_train_batches=0.05,
          logger=logger,
      )
      assert trainer.log_dir == os.path.join(os.getcwd(), ".neptune")
      trainer.fit(model)
      trainer.test(model)
      assert trainer.log_dir == os.path.join(os.getcwd(), ".neptune")
  
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 2 for calling a global function with example usage: _fit_and_test(logger, model, tmp_path) without return types