code: def _check_for(dist, attr="ppf"):
      if not hasattr(dist, attr):
          raise AttributeError(
              f"distribution must have a {attr} method"
          )
  
imports: from statsmodels.compat.python import lzip
  import numpy
  from scipy import stats
  from statsmodels.distributions import ECDF
  from statsmodels.regression.linear_model import OLS
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.tools.tools import add_constant
  from .None import utils
label_desc: Use image node_id 7 for calling a global function with example usage: _check_for(dist, attr) without return types