code: def test_raf_ols_mint():
      """Verify that output for "ols" and "mint_sample" match expected output from R."""
      # Expected results from R `hts` package
      data_dir = os.path.join(
          os.path.dirname(os.path.realpath(__file__)), "data"
      )
      expected_ols = pd.read_csv(
          os.path.join(data_dir, "expected_ols.csv")
      ).drop(columns=TIME_COL)
      expected_mint = pd.read_csv(
          os.path.join(data_dir, "expected_mint.csv")
      ).drop(columns=TIME_COL)
  
      # Input data and constraints
      dl = DataLoader()
      actuals = dl.load_data(
          data_name="daily_hierarchical_actuals"
      ).drop(columns=TIME_COL)
      forecasts = dl.load_data(
          data_name="daily_hierarchical_forecasts"
      ).drop(columns=TIME_COL)
      levels = [[2], [3, 2]]
  
      raf = ReconcileAdditiveForecasts()
      raf.fit_transform(
          forecasts=forecasts,
          actuals=actuals,
          levels=levels,
          method="ols",
      )
      assert_equal(raf.adjusted_forecasts, expected_ols)
      raf.fit_transform(
          forecasts=forecasts,
          actuals=actuals,
          levels=levels,
          method="mint_sample",
      )
      assert_equal(raf.adjusted_forecasts, expected_mint, rel=1e-4)
  
imports: import math
  import os
  import warnings
  import cvxpy
  import numpy
  import pandas
  import pytest
  from scipy.linalg import sqrtm
  from sklearn.exceptions import NotFittedError
  from greykite.algo.reconcile.convex.reconcile_forecasts import ReconcileAdditiveForecasts
  from greykite.algo.reconcile.convex.reconcile_forecasts import TraceInfo
  from greykite.algo.reconcile.convex.reconcile_forecasts import apply_method_defaults
  from greykite.algo.reconcile.convex.reconcile_forecasts import evaluation_plot
  from greykite.algo.reconcile.convex.reconcile_forecasts import get_fit_params
  from greykite.algo.reconcile.convex.reconcile_forecasts import get_weight_matrix
  from greykite.algo.reconcile.hierarchical_relationship import HierarchicalRelationship
  from greykite.common.constants import TIME_COL
  from greykite.common.data_loader import DataLoader
  from greykite.common.evaluation import mean_absolute_percent_error
  from greykite.common.evaluation import median_absolute_percent_error
  from greykite.common.evaluation import root_mean_squared_error
  from greykite.common.python_utils import assert_equal
  from greykite.common.python_utils import reorder_columns
label_desc: Use image node_id 13 for calling a global function with example usage: test_raf_ols_mint() without return types