code: def test_abstractanalysis_fit_on_inner_before_outer_raises_exception():
      inner_analysis = BaseAnalysis(a=1, b=2)
      outer_analysis = BaseAnalysis(b=3, c=4, children=[inner_analysis])
      with pytest.raises(AssertionError):
          inner_analysis.fit()
      state = outer_analysis.fit()
      assert state is not None
  
file_path: autogluon/eda/tests/unittests/analysis/test_base.py
imports: from unittest.mock import MagicMock
  import pandas
  import pytest
  from autogluon.eda import AnalysisState
  from autogluon.eda.analysis import Namespace
  from autogluon.eda.analysis.base import AbstractAnalysis, BaseAnalysis, SaveArgsToState
label_desc: Use image node_id 6 for calling a global function with example usage: test_abstractanalysis_fit_on_inner_before_outer_raises_exception() without return types