code: def naive_rea(cac, n_regimes, L, excl_factor):
      cac_list = cac.tolist()
      loc_regimes = [None] * (n_regimes - 1)
      for i in range(n_regimes - 1):
          loc_regimes[i] = cac_list.index(min(cac_list))
          excl_start = max(loc_regimes[i] - L * excl_factor, 0)
          excl_stop = min(
              loc_regimes[i] + L * excl_factor, len(cac_list)
          )
          for excl in range(excl_start, excl_stop):
              cac_list[excl] = 1.0
  
      return np.array(loc_regimes, dtype=np.int64)
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import aamp, core, floss, fluss, stump
  from stumpy.floss import _cac, _iac, _nnmark, _rea
label_desc: Use image node_id 5 for calling a global function with example usage: naive_rea(cac, n_regimes, L, excl_factor) and returns: np