code: def test_times_like_scalar():
      X = 7
      sr = 22050
      hop_length = 512
  
      times = librosa.times_like(X, sr=sr, hop_length=hop_length)
  
      expected_times = np.arange(7) * hop_length / float(sr)
  
      assert np.allclose(times, expected_times)
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 35 for calling a global function with example usage: test_times_like_scalar() without return types