code: def test_samples_to_time(sr):
      assert np.allclose(
          librosa.samples_to_time([0, sr, 2 * sr], sr=sr), [0, 1, 2]
      )
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_samples_to_time(sr) without return types