code: def test_ModelLeaderboard():
      assert (
          ModelLeaderboard().can_handle(
              state=AnalysisState(model_evaluation={})
          )
          is False
      )
  
      state = AnalysisState(
          model_evaluation={"leaderboard": "some_leaderboard"}
      )
  
      viz = ModelLeaderboard(headers=True)
      assert viz.can_handle(state=state) is True
  
      viz.render_markdown = MagicMock()
      viz.display_obj = MagicMock()
      viz.render(state)
      viz.render_markdown.assert_called_with("**Model Leaderboard**")
      viz.display_obj.assert_called_with("some_leaderboard")
  
file_path: autogluon/eda/tests/unittests/visualization/test_model.py
imports: from unittest.mock import ANY, MagicMock
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  import seaborn
  from autogluon.eda import AnalysisState
  from autogluon.eda.visualization import ConfusionMatrix, FeatureImportance, ModelLeaderboard, RegressionEvaluation
label_desc: Use image node_id 10 for calling a global function with example usage: test_ModelLeaderboard() without return types