code: def test_study_summary_lt_le() -> None:
      storage = RDBStorage("sqlite:///:memory:")
  
      create_study(storage=storage)
      study = create_study(storage=storage)
  
      summaries = get_all_study_summaries(
          study._storage, include_best_trial=True
      )
      assert len(summaries) == 2
  
      summary_0 = summaries[0]
      summary_1 = summaries[1]
  
      assert summary_0 < summary_1
      assert not summary_1 < summary_0
  
      with pytest.raises(TypeError):
          summary_0 < 1
  
      assert summary_0 <= summary_0
      assert not summary_1 <= summary_0
  
      with pytest.raises(TypeError):
          summary_0 <= 1
  
      # A list of StudySummaries is sortable.
      summaries.reverse()
      summaries.sort()
      assert summaries[0] == summary_0
      assert summaries[1] == summary_1
  
imports: import copy
  import pytest
  from optuna import create_study
  from optuna import get_all_study_summaries
  from optuna.storages import RDBStorage
label_desc: Use image node_id 2 for calling a global function with example usage: test_study_summary_lt_le() without return types