code: def _check_for_extra_kwargs(caller_name, kwargs: dict):
      for name in CURRENT_KWARGS:
          if name in kwargs:
              raise NeptuneIncorrectImportException()
      if kwargs:
          first_key = next(iter(kwargs.keys()))
          raise TypeError(
              f"{caller_name}() got an unexpected keyword argument '{first_key}'"
          )
  
imports: import logging
  import os
  import threading
  from neptune.common.utils import assure_project_qualified_name
  from neptune.legacy import constants, envs
  from neptune.legacy.exceptions import InvalidNeptuneBackend, NeptuneIncorrectImportException, NeptuneUninitializedException
  from neptune.legacy.internal.api_clients.backend_factory import backend_factory
  from neptune.legacy.internal.utils.deprecation import legacy_client_deprecation
  from neptune.legacy.projects import Project
  from neptune.legacy.sessions import Session
label_desc: Use image node_id 1 for calling a global function with example usage: _check_for_extra_kwargs(caller_name, kwargs) without return types