docstr: Resample a signal from 1 hz to 499 hz to check that custom_length works
  correctly without extra internal padding
docstr_tok: ["Resample","a","signal","from","1","hz","to","499","hz","to","check","that","custom_length","works","correctly","without","extra","internal","padding"]
code: def test_custom_output_length_extreme_resampling(self):
      """
      Resample a signal from 1 hz to 499 hz to check that custom_length works
      correctly without extra internal padding
      """
      x = th.ones(1, 1)
  
      resampler = resample.ResampleFrac(old_sr=1, new_sr=499)
      y = resampler(x, output_length=499)
      self.assertEqual(y.shape, (1, 499))
  
      # Test functional version as well
      y = resample.resample_frac(
          x, old_sr=1, new_sr=499, output_length=3
      )
      self.assertEqual(y.shape, (1, 3))
  
imports: import os
  import tempfile
  import uuid
  from pathlib import Path
  import math
  import random
  import unittest
  import resampy
  import torch
  from julius import resample, ResampleFrac
label_desc: Use image node_id 7 for calling the TestResampleFrac obj's underlying member method code with example usage: obj.test_custom_output_length_extreme_resampling() without return types