code: def _assert_array_almost_equal(x, y, decimal=6, err_msg=""):
      func = np.testing.assert_array_almost_equal
      if isinstance(x, pd.DataFrame):
          _compare_nested_frame(
              func, x, y, decimal=decimal, err_msg=err_msg
          )
      else:
          func(x, y, decimal=decimal, err_msg=err_msg)
  
imports: from inspect import isclass, signature
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal
  from sklearn.utils.validation import check_random_state
  from sktime.alignment.base import BaseAligner
  from sktime.base import BaseEstimator, BaseObject
  from sktime.classification.base import BaseClassifier
  from sktime.classification.early_classification import BaseEarlyClassifier
  from sktime.clustering.base import BaseClusterer
  from sktime.datatypes._panel._check import is_nested_dataframe
  from sktime.dists_kernels import BasePairwiseTransformer, BasePairwiseTransformerPanel
  from sktime.forecasting.base import BaseForecaster
  from sktime.registry import scitype
  from sktime.regression.base import BaseRegressor
  from sktime.tests._config import VALID_ESTIMATOR_TYPES
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 6 for calling a global function with example usage: _assert_array_almost_equal(x, y, decimal, err_msg) without return types