code: def test_online_with_wrong_kwargs(neptune_mock):
      """Tests combinations of kwargs together with `run` kwarg which makes some of other parameters unavailable in
      init."""
      run = neptune_mock.init_run()
  
      with pytest.raises(ValueError):
          NeptuneLogger(run="some string")
  
      with pytest.raises(ValueError):
          NeptuneLogger(run=run, project="redundant project")
  
      with pytest.raises(ValueError):
          NeptuneLogger(run=run, api_key="redundant api key")
  
      with pytest.raises(ValueError):
          NeptuneLogger(run=run, name="redundant api name")
  
      with pytest.raises(ValueError):
          NeptuneLogger(run=run, foo="random **kwarg")
  
      # this should work
      NeptuneLogger(run=run)
      NeptuneLogger(project="foo")
      NeptuneLogger(foo="bar")
  
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 8 for calling a global function with example usage: test_online_with_wrong_kwargs(neptune_mock) without return types