code: def test_blocks_to_samples(blocks, block_length, hop_length):
      samples = librosa.blocks_to_samples(
          blocks, block_length=block_length, hop_length=hop_length
      )
  
      # Check shape
      assert samples.ndim == np.asarray(blocks).ndim
      assert samples.size == np.asarray(blocks).size
  
      # Check values
      assert np.allclose(
          samples, np.asanyarray(blocks) * hop_length * block_length
      )
  
      # Check dtype
      assert np.issubdtype(samples.dtype, int)
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 37 for calling a global function with example usage: test_blocks_to_samples(blocks, block_length, hop_length) without return types