code: def test_actual_results_power_transformer_box_cox():
      """Test that the actual results are the expected ones."""
      for standardize in [True, False]:
          pt = PowerTransformer(
              method="box-cox", standardize=standardize
          )
          arr_actual = pt.fit_transform(X)
          arr_desired = [boxcox(X[i])[0] for i in range(3)]
          if standardize:
              arr_desired = StandardScaler().transform(arr_desired)
          np.testing.assert_allclose(
              arr_actual, arr_desired, atol=1e-5, rtol=0.0
          )
  
imports: import numpy
  from scipy.stats import boxcox, norm, yeojohnson
  from pyts.preprocessing import StandardScaler
  from pyts.preprocessing import PowerTransformer, QuantileTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: test_actual_results_power_transformer_box_cox() without return types