code: def test_format_nvec(nvec, exp):
      """Test formatting of a tuple of integers into a nice string."""
      assert format_nvec(nvec) == exp
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.fourier.utils import format_nvec, get_spectrum, join_spectra
label_desc: Use image node_id 1 for calling a global function with example usage: test_format_nvec(nvec, exp) without return types