code: def testStereoSample(self):
      testFile = "foo: [{left: 3, right: 6}, {left: 4, right: 7}]"
      writeFile(testFile, "testfile")
  
      try:
          p = YamlInput(filename="testfile")()
      finally:
          os.remove("testfile")
  
      self.assertEqual(len(p["foo"]), 2)
      self.assertEqual(p["foo"][0][0], 3)
      self.assertEqual(p["foo"][0][1], 6)
      self.assertEqual(p["foo"][1][0], 4)
      self.assertEqual(p["foo"][1][1], 7)
  
      testFile = '{ "foo": [{"left": 3, "right": 6}, {"left": 4, "right": 7}] }'
      writeFile(testFile, "testfile")
  
      # TODO dict elements in lists  are currently not supported for json
      self.assertRaises(
          RuntimeError,
          lambda: YamlInput(filename="testfile", format="json")(),
      )
      os.remove("testfile")
  
imports: from essentia_test import *
  import os
label_desc: Use image node_id 10 for calling the TestYamlInput obj's underlying member method code with example usage: obj.testStereoSample() without return types