code: def test_times_like():
      X = np.ones((3, 4, 5))
      sr = 22050
      hop_length = 512
  
      for axis in (0, 1, 2, -1):
          times = librosa.times_like(
              X, sr=sr, hop_length=hop_length, axis=axis
          )
  
          expected_times = (
              np.arange(X.shape[axis]) * 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 34 for calling a global function with example usage: test_times_like() without return types