code: def test_AbstractVisualization_can_render():
      viz = SomeVisualization(namespace="ns1")
      viz._render = MagicMock()
      viz.can_handle = MagicMock(wraps=viz.can_handle)
      viz.render(
          AnalysisState(
              {"ns1": {"required_key": True, "data": 1}, "ns2": {}}
          )
      )
      viz.can_handle.assert_called_once()
      viz._render.assert_called_with({"required_key": True, "data": 1})
  
file_path: autogluon/eda/tests/unittests/visualization/test_base.py
imports: from unittest.mock import MagicMock
  from autogluon.eda import AnalysisState
  from autogluon.eda.visualization.base import AbstractVisualization
label_desc: Use image node_id 2 for calling a global function with example usage: test_AbstractVisualization_can_render() without return types