class_docstr: Module level tests for all sktime distributions.
docstr: Test expected return of methods that take sample-like argument.
docstr_tok: ["Test","expected","return","of","methods","that","take","sample-like","argument","."]
code: def test_methods_x(self, estimator_instance, method, shuffled):
      """Test expected return of methods that take sample-like argument."""
      if not _has_capability(estimator_instance, method):
          return None
  
      d = estimator_instance
  
      if shuffled:
          d = _shuffle_distr(d)
  
      x = d.sample()
      res = getattr(d, method)(x)
  
      _check_output_format(res, d, method)
  
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 3 for calling the TestAllDistributions obj's underlying member method code with example usage: obj.test_methods_x(estimator_instance, method, shuffled) and returns: None