class_docstr: Module level tests for all sktime distributions.
docstr: Test that the ppf is the inverse of the cdf.
docstr_tok: ["Test","that","the","ppf","is","the","inverse","of","the","cdf","."]
code: def test_ppf_and_cdf(self, estimator_instance):
      """Test that the ppf is the inverse of the cdf."""
      d = estimator_instance
      capabilities_exact = d.get_tags()["capabilities:exact"]
  
      if (
          "ppf" not in capabilities_exact
          or "cdf" not in capabilities_exact
      ):
          return
      x = d.sample()
      x_approx = d.ppf(d.cdf(x))
      assert np.allclose(x.values, x_approx.values)
  
imports: import numpy
  import pandas
  import pytest
  from sktime.datatypes import check_is_mtype
  from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester
  from sktime.utils.index import random_ss_ix
label_desc: Use image node_id 8 for calling the TestAllDistributions obj's underlying member method code with example usage: obj.test_ppf_and_cdf(estimator_instance) without return types