class_docstr: This estimator's `available` parameter toggles the presence of a method
docstr: This is a mock available_if function
code: def available_func(self):
      """This is a mock available_if function"""
      return self.return_value
  
file_path: scikit-learn/sklearn/utils/tests/test_metaestimators.py
imports: import pickle
  import pytest
  from sklearn.utils.metaestimators import available_if
label_desc: Use image node_id 2 for calling the AvailableParameterEstimator obj's underlying member method code with example usage: obj.available_func() and returns: self