code: def check_is_fitted(method):
      @functools.wraps(method)
      def _impl(self, *method_args, **method_kwargs):
          validation.check_is_fitted(self)
          return method(self, *method_args, **method_kwargs)
  
      return _impl
  
file_path: prince/prince/utils.py
imports: from __future__ import annotations
  import functools
  import altair
  import numpy
  import pandas
  from sklearn.utils import validation
label_desc: Use image node_id 1 for calling a global function with example usage: check_is_fitted(method) and returns: _impl, method