code: def test_check_is_latest_version_in_background(
      mocker: MockerFixture,
  ) -> None:
      spy_is_latest_version = mocker.spy(
          _version_checking, "is_latest_version"
      )
      _version_checking.check_is_latest_version_in_background("1.2.8")
      time.sleep(0.1)  # Wait for thread to run.
      spy_is_latest_version.assert_called_once_with(
          current_version="1.2.8"
      )
  
file_path: lightly/tests/api/test_version_checking.py
imports: import os
  import time
  import pytest
  from pytest_mock import MockerFixture
  from urllib3.exceptions import MaxRetryError
  from lightly.api import _version_checking
  from lightly.openapi_generated.swagger_client.api import VersioningApi
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_is_latest_version_in_background(mocker) without return types