class_docstr: Module level tests for all sktime distributions.
docstr: Test expected return of quantile method.
docstr_tok: ["Test","expected","return","of","quantile","method","."]
code: def test_quantile(self, estimator_instance, q):
      """Test expected return of quantile method."""
      if not _has_capability(estimator_instance, "ppf"):
          return None
  
      d = estimator_instance
  
      def _check_quantile_output(obj, q):
          assert check_is_mtype(
              obj, "pred_quantiles", "Proba", msg_return_dict="list"
          )
          assert (obj.index == d.index).all()
  
          if not isinstance(q, list):
              q = [q]
          expected_columns = pd.MultiIndex.from_product([d.columns, q])
          assert (obj.columns == expected_columns).all()
  
      res = d.quantile(q)
      _check_quantile_output(res, q)
  
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 5 for calling the TestAllDistributions obj's underlying member method code with example usage: obj.test_quantile(estimator_instance, q) and returns: None