code: def testPurelyHarmonic(self):
      f0 = 110
      freqs = [0.5, 1.0, 2.0, 3.0, 4.0]
      freqs = [freq * f0 for freq in freqs]
      mags = ones(len(freqs))
      self.assertEqual(Inharmonicity()(freqs, mags), 0)
  
      freqs = [1.0, 5.0, 8.0, 15.0]
      freqs = [freq * f0 for freq in freqs]
      mags = ones(len(freqs))
      self.assertEqual(Inharmonicity()(freqs, mags), 0)
  
file_path: essentia/test/src/unittests/tonal/test_inharmonicity.py
imports: from essentia_test import *
label_desc: Use image node_id 2 for calling the TestInharmonicity obj's underlying member method code with example usage: obj.testPurelyHarmonic() without return types