code: def test_all_sorted(module: ModuleType) -> None:
      all_list = getattr(module, "__all__", None)
      assert all_list is not None  # Hint for mypy.
      all_sorted = sorted(all_list)
      assert (
          all_sorted == all_list
      ), f"{module}.__all__ is not sorted. Expected {all_sorted}, found {all_list}."
  
file_path: GPflow/tests/gpflow/test_all.py
imports: import ast
  import importlib
  from pathlib import Path
  from types import ModuleType
  from typing import Any, List, Optional, Sequence
  import pytest
  import gpflow
label_desc: Use image node_id 6 for calling a global function with example usage: test_all_sorted(module) without return types