code: def test_is_latest_version(mocker: MockerFixture) -> None:
      mocker.patch.object(
          _version_checking.VersioningApi,
          "get_latest_pip_version",
          return_value="1.2.8",
      )
      assert _version_checking.is_latest_version("1.2.8")
      assert not _version_checking.is_latest_version("1.2.7")
      assert not _version_checking.is_latest_version("1.1.8")
      assert not _version_checking.is_latest_version("0.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 2 for calling a global function with example usage: test_is_latest_version(mocker) without return types