code: def random_studentt(shape):
      df = torch.rand(shape).exp()
      loc = torch.randn(shape)
      scale = torch.rand(shape).exp()
      return dist.StudentT(df, loc, scale)
  
file_path: pyro/tests/infer/reparam/test_hmm.py
imports: import pytest
  import torch
  import pyro
  import pyro.distributions
  from pyro import poutine
  from pyro.infer.reparam import LinearHMMReparam, StableReparam, StudentTReparam, SymmetricStableReparam
  from tests.common import assert_close
  from tests.ops.gaussian import random_mvn
  from .util import check_init_reparam
label_desc: Use image node_id 1 for calling a global function with example usage: random_studentt(shape) and returns: dist