code: def _convert_from_multidim(x, totype=list):
      if len(x.shape) < 2:
          return totype(x)
      return x.T
  
file_path: statsmodels/statsmodels/stats/moment_helpers.py
imports: import numpy
  from scipy.special import comb
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_from_multidim(x, totype) and returns: x, totype