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