code: def post_fit(func):
      """decorator for post-fit methods"""
  
      def pff_wrapper(self, *args, **kwargs):
          assert (
              self._is_fit
          ), f".fit needs to be called prior to .{func.__name__}"
          return func(self, *args, **kwargs)
  
      return pff_wrapper
  
imports: import copy
  from typing import Any, Dict, List, Optional, Union
  import numpy
  import pandas
  from autogluon.core.constants import BINARY
  from autogluon.core.metrics import BINARY_METRICS, roc_auc
  from autogluon.core.utils import generate_train_test_split
  from autogluon.tabular import TabularPredictor
  from ..None import AnalysisState
  from ..state import StateCheckMixin
  from .base import AbstractAnalysis
label_desc: Use image node_id 1 for calling a global function with example usage: post_fit(func) and returns: pff_wrapper, func