code: def testSingleKey(self):
      testFile = "foo: [1.0]"
      writeFile(testFile, "testfile")
  
      p = YamlInput(filename="testfile")()
      os.remove("testfile")
  
      self.assertAlmostEqualVector(p["foo"], [1.0])
  
      testFile = '{ "foo": [1.0] }'
      writeFile(testFile, "testfile")
  
      p = YamlInput(filename="testfile", format="json")()
      os.remove("testfile")
  
      self.assertAlmostEqualVector(p["foo"], [1.0])
  
imports: from essentia_test import *
  import os
label_desc: Use image node_id 6 for calling the TestYamlInput obj's underlying member method code with example usage: obj.testSingleKey() without return types