code: def _shuffle_distr(d):
      """Shuffle distribution row index."""
      shuffled_index = pd.DataFrame(d.index).sample(frac=1).index
      return d.loc[shuffled_index]
  
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 a global function with example usage: _shuffle_distr(d) and returns: d