code: def _check_fh(fh, cutoff):
      if fh is not None:
          if not fh.is_all_out_of_sample(cutoff):
              raise NotImplementedError(
                  "in-sample prediction are currently not implemented"
              )
  
file_path: sktime/sktime/forecasting/adapters/_hcrystalball.py
imports: import pandas
  from sklearn.base import clone
  from sktime.forecasting.base import BaseForecaster
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 1 for calling a global function with example usage: _check_fh(fh, cutoff) without return types