code: def test_available_if_docstring():
      assert "This is a mock available_if function" in str(
          AvailableParameterEstimator.__dict__["available_func"].__doc__
      )
      assert "This is a mock available_if function" in str(
          AvailableParameterEstimator.available_func.__doc__
      )
      assert "This is a mock available_if function" in str(
          AvailableParameterEstimator().available_func.__doc__
      )
  
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 1 for calling a global function with example usage: test_available_if_docstring() without return types