code: def _close_connections_on_fork(session: requests.Session):
      try:
          os.register_at_fork(
              before=session.close,
              after_in_child=session.close,
              after_in_parent=session.close,
          )
      except AttributeError:
          pass
  
imports: import os
  import platform
  from typing import Dict, Tuple
  import requests
  from bravado.http_client import HttpClient
  from bravado.requests_client import RequestsClient
  from neptune.common.backends.utils import with_api_exceptions_handler
  from neptune.common.oauth import NeptuneAuthenticator
  from neptune.envs import NEPTUNE_REQUEST_TIMEOUT
  from neptune.exceptions import NeptuneClientUpgradeRequiredError
  from neptune.internal.backends.api_model import ClientConfig
  from neptune.internal.backends.swagger_client_wrapper import SwaggerClientWrapper
  from neptune.internal.backends.utils import NeptuneResponseAdapter, build_operation_url, cache, create_swagger_client, update_session_proxies, verify_client_version, verify_host_resolution
  from neptune.internal.credentials import Credentials
  from neptune.version import version
label_desc: Use image node_id 1 for calling a global function with example usage: _close_connections_on_fork(session) without return types