code: def test_abstractanalysis_fit_gathers_args():
      inner_analysis = BaseAnalysis(a=1, b=2)
      outer_analysis = BaseAnalysis(b=3, c=4, children=[inner_analysis])
      inner_analysis._fit = MagicMock()
      outer_analysis._fit = MagicMock()
  
      state = outer_analysis.fit(arg_a=10, arg_b=11)
      assert inner_analysis.state is state
      assert outer_analysis.state is state
  
      outer_analysis._fit.assert_called_once_with(
          {}, {"b": 3, "c": 4}, arg_a=10, arg_b=11
      )
      inner_analysis._fit.assert_called_once_with(
          {}, {"a": 1, "b": 2, "c": 4}, arg_a=10, arg_b=11
      )
  
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 7 for calling a global function with example usage: test_abstractanalysis_fit_gathers_args() without return types