code: def test_custom_studentt_logpdf_matches_scipy_student_logpdf(
      df, loc, scale
  ):
      torch_dist = StudentT(df=df, loc=loc, scale=scale)
      scipy_dist = torch_dist.scipy_student_t
      x = torch.linspace(-20, 20, 1000)
      log_pdf_torch = torch_dist.log_prob(x).numpy()
      log_pdf_scipy = scipy_dist.logpdf(x.numpy())
  
      assert np.allclose(log_pdf_torch, log_pdf_scipy)
  
imports: import pytest
  import numpy
  import torch
  from gluonts.torch.distributions.studentT import StudentT
label_desc: Use image node_id 1 for calling a global function with example usage: test_custom_studentt_logpdf_matches_scipy_student_logpdf(df, loc, scale) without return types