code: def test_SaveArgsToState():
      train_data = list("abc")
  
      class SomeTransform(AbstractAnalysis):
          def can_handle(
              self, state: AnalysisState, args: AnalysisState
          ) -> bool:
              return True
  
          def _fit(
              self,
              state: AnalysisState,
              args: AnalysisState,
              **fit_kwargs,
          ) -> None:
              print(args)
              self.args["train_data"] = [
                  c.upper() for c in args["train_data"]
              ]
  
      state = BaseAnalysis(
          train_data=train_data,
          children=[
              SomeTransform(
                  children=[
                      SaveArgsToState(
                          params_mapping={"train_data": "result_arg"}
                      )
                  ]
              )
          ],
      ).fit()
  
      assert state.result_arg == ["A", "B", "C"]
  
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 9 for calling a global function with example usage: test_SaveArgsToState() and returns: True